public AttributedMetaTable(TableAttribute attribute, MetaType type, MetaModel model) { _tableAttribute = attribute; _metaType = type; _containingModel = model; //If the attribute doesn't specify a table name the name of the table class is used if(!string.IsNullOrEmpty(attribute.Name)) { _tableName = attribute.Name; } else { _tableName = type.Name; } }
internal AttributedMetaTable(AttributedMetaModel model, TableAttribute attr, Type rowType) { this.model = model; this.tableName = string.IsNullOrEmpty(attr.Name) ? rowType.Name : attr.Name; this.rowType = new AttributedRootType(model, this, rowType); }
public AttributedMetaTable(TableAttribute attribute, MetaType type) { tableAttribute = attribute; metaType = type; }