Shaolinq.Persistence.PropertyDescriptor.IsPropertyPrimaryKey C# (CSharp) Method

IsPropertyPrimaryKey() public static method

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

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