DDLServices 类
扩展方法
public static class DDLServices
- 继承
-
objectDDLServices
方法
GetDefineColumComponent(ISqlEngine)
获取类型解析器
public static IDefineColumComponent GetDefineColumComponent(this ISqlEngine engine)
参数
engineISqlEngine
返回
异常
GetTypeParser(ISqlEngine, Type)
获取类型解析器
public static ITypeParser GetTypeParser(this ISqlEngine engine, Type originalType)
参数
engineISqlEngineoriginalTypeType
返回
异常
ToCreate(TableSchema)
建表
public static CreateTable ToCreate(this TableSchema table)
参数
tableTableSchema表
返回
ToCreate(ITable, IEnumerable<ColumnSchema>, IEnumerable<IConstraint>)
建表
public static CreateTable ToCreate(this ITable table, IEnumerable<ColumnSchema> columns, IEnumerable<IConstraint> constraints)
参数
tableITable表
columnsIEnumerable<ColumnSchema>列
constraintsIEnumerable<IConstraint>约束
返回
ToDrop(ITable)
删表
public static DropTable ToDrop(this ITable table)
参数
tableITable表