ServiceStack/ServiceStack.OrmLite — pull request #205 by angelcolmenares (2013-03-23 05:26:49+00:00)
Title: DDL methods

hi,
added some new and useful DDL methods:

public static void AddColumn(this IDbConnection dbConn, Expression> field);

public static void AddColumn(this IDbConnection dbConn, Type modelType, FieldDefinition fieldDef);

public static void AlterColumn(this IDbConnection dbConn, Expression> field);

public static void AlterColumn(this IDbConnection dbConn, Type modelType, FieldDefinition fieldDef);

public static void ChangeColumnName(this IDbConnection dbConn,
Expression> field,
string oldColumnName);

public static void ChangeColumnName(this IDbConnection dbConn,
Type modelType,
FieldDefinition fieldDef,
string oldColumnName);

public static void DropColumn(this IDbConnection dbConn,string columnName);

public static void DropColumn(this IDbConnection dbConn,Type modelType, string columnName);

public static void AddForeignKey(this IDbConnection dbConn,
Expression> field,
Expression> foreignField,
OnFkOption onUpdate,
OnFkOption onDelete,
string foreignKeyName=null);

public static void DropForeignKey(this IDbConnection dbConn,string foreignKeyName);

public static void CreateIndex(this IDbConnection dbConn,Expression> field,
string indexName=null, bool unique=false);

public static void DropIndex(this IDbConnection dbConn, string indexName);