| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 根据 PropertyName 判断是否存在 |
| | | /// 判断 PropertyName 是否存在 |
| | | /// </summary> |
| | | public bool IsExistPropertyName(string ObjectType, string PropertyName) |
| | | { |
| | | var all = GetByObjectType(ObjectType); |
| | | return all.Exists(x => x.ObjectType == ObjectType && x.PropertyName == PropertyName); |
| | | return all.Exists(x => x.PropertyName == PropertyName); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 判断 PropertyName 是否存在 排序特定ID |
| | | /// </summary> |
| | | public bool IsExistPropertyNameExceptID(string ObjectType, string PropertyName, long ExceptID) |
| | | { |
| | | var all = GetByObjectType(ObjectType); |
| | | return all.Exists(x => x.PropertyName == PropertyName&&x.ID!= ExceptID); |
| | | } |
| | | |
| | | #endregion |