public MetaTableMetadata(MetaTable table)
            {
                Debug.Assert(table != null);

                Attributes = table.BuildAttributeCollection();

                _readOnlyAttribute     = Attributes.FirstOrDefault <ReadOnlyAttribute>();
                _displayNameAttribute  = Attributes.FirstOrDefault <DisplayNameAttribute>();
                DisplayColumnAttribute = Attributes.FirstOrDefault <DisplayColumnAttribute>();
                ScaffoldTable          = Attributes.GetAttributePropertyValue <ScaffoldTableAttribute, bool?>(a => a.Scaffold, null);
            }
Exemplo n.º 2
0
            public MetaTableMetadata(MetaTable table) {
                Debug.Assert(table != null);

                Attributes = table.BuildAttributeCollection();

                _readOnlyAttribute = Attributes.FirstOrDefault<ReadOnlyAttribute>();
                _displayNameAttribute = Attributes.FirstOrDefault<DisplayNameAttribute>();
                DisplayColumnAttribute = Attributes.FirstOrDefault<DisplayColumnAttribute>();
                ScaffoldTable = Attributes.GetAttributePropertyValue<ScaffoldTableAttribute, bool?>(a => a.Scaffold, null);
            }