Shaolinq.Persistence.PropertyDescriptor.IsPropertyPrimaryKey C# (CSharp) 메소드

IsPropertyPrimaryKey() 공개 정적인 메소드

public static IsPropertyPrimaryKey ( PropertyInfo propertyInfo ) : bool
propertyInfo System.Reflection.PropertyInfo
리턴 bool
		public static bool IsPropertyPrimaryKey(PropertyInfo propertyInfo)
		{
			var value =  propertyInfo?.GetFirstCustomAttribute<PrimaryKeyAttribute>(true);

			return value != null && value.IsPrimaryKey;
		}