完善模型通用接口的无限层级一对一和单层级一对多
This commit is contained in:
@@ -187,7 +187,7 @@ public static class StringExtensions
|
||||
/// <summary>
|
||||
/// 查找路径的上一级
|
||||
/// </summary>
|
||||
public static (string?, string) LastSplitOnce(this string str, char seperate)
|
||||
public static (string?, string) GetParent(this string str, char seperate)
|
||||
{
|
||||
int n = str.LastIndexOf(seperate);
|
||||
if (n > 0)
|
||||
|
||||
Reference in New Issue
Block a user