public CremaDataTableNamespace(string name, string categoryPath, string baseNamespace) { NameValidator.ValidateName(name); NameValidator.ValidateCategoryPath(categoryPath); var tableName = NameUtility.GetName(name); var parentName = NameUtility.GetParentName(name); this.name = name; this.tableName = tableName; this.tableNamespace = baseNamespace + categoryPath + name; }
protected override string GetParentPath(string path) { if (NameValidator.VerifyItemPath(path) == true) { var itemName = new ItemName(path); var parentName = NameUtility.GetParentName(itemName.Name); if (parentName != string.Empty) { return(new ItemName(itemName.CategoryPath, parentName)); } } return(base.GetParentPath(path)); }
public static string GetParentName(string name) { return(NameUtility.GetParentName(name)); }