Пример #1
0
        /// <summary>
        /// Gets the TypeAttributes for the property Modifiers
        /// </summary>
        /// <returns></returns>
        internal static MemberAttributes GetMemberAttributes(this SqlTable table, bool isVirtual, EntityGenerationContext context)
        {
            // to get member attributes, we need to take the modifiers and return something else...
            switch (table.Modifiers)
            {
            case TableModifiers.Public:
                return(SqlMemberExtender.GetMemberAttributes(ColumnModifiers.Public, isVirtual, context));

            case TableModifiers.Internal:
                return(SqlMemberExtender.GetMemberAttributes(ColumnModifiers.Internal, isVirtual, context));

            default:
                throw new NotSupportedException(string.Format("Cannot handle '{0}' ({1}).", table.Modifiers, table.Modifiers.GetType()));
            }
        }
Пример #2
0
 public static TypeAttributes GetTypeAttributes(this SqlTable table, bool isVirtual, EntityGenerationContext context)
 {
     return(SqlMemberExtender.GetTypeAttributes(table.Modifiers, isVirtual, context));
 }
Пример #3
0
 internal static MemberAttributes GetMemberAttributes(this SqlColumn column, bool isVirtual, EntityGenerationContext context)
 {
     return(SqlMemberExtender.GetMemberAttributes(column.Modifiers, isVirtual, context));
 }