예제 #1
0
        public static AtomMemberInfo Key(this AtomMemberInfo memberInfo)
        {
            memberInfo.Unique    = true;
            memberInfo.Queryable = true;
            memberInfo.IsPrimary = true;
            memberInfo.AddFlags(MemberFlags.PrimaryKey);

            return(memberInfo);
        }
예제 #2
0
 internal static AtomMemberInfo Flag(this AtomMemberInfo memberInfo, MemberFlags additionalFlags = MemberFlags.None)
 {
     return(memberInfo.AddFlags(additionalFlags));
 }
예제 #3
0
 internal static AtomMemberInfo Generated(this AtomMemberInfo memberInfo, MemberFlags additionalFlags = MemberFlags.None)
 {
     return(memberInfo.AddFlags(MemberFlags.Generated | additionalFlags));
 }
예제 #4
0
 public static AtomMemberInfo NotUpdateable(this AtomMemberInfo memberInfo)
 {
     return(memberInfo.AddFlags(MemberFlags.NotUpdateable));
 }