public override IEnumerable<IColumnDefinition> GetColumnDefinitionsFromDB(IDataProvider Provider) { var Inline = new InlineQuery(Provider, GET_DB_COLUMN_DEFINITIONS); columnDefinitions = Inline.ExecuteTypedList<DBColumnDefinition>() .Select((X) => (IColumnDefinition)X) .ToList(); return columnDefinitions; }
/// <summary> /// Get's a list of all contraints in the database that are not primary key contraints /// </summary> /// <param name="Provider"></param> /// <returns></returns> public override IEnumerable<IConstraint> GetConstraintsFromDB(IDataProvider Provider) { var Inline = new InlineQuery(Provider, GET_DB_CONSTRAINTS); constraints = Inline.ExecuteTypedList<DatabaseContraint>() .Select((X) => (IConstraint)X) .ToList(); return constraints; }