コード例 #1
0
        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;
        }
コード例 #2
0
        /// <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;
        }