예제 #1
0
 /// <summary>
 /// 重命名序列号。
 /// </summary>
 /// <param name="operation">操作实例。</param>
 /// <param name="builder"><see cref="MigrationCommandListBuilder"/>实例对象。</param>
 protected virtual void Generate(
     [NotNull] RenameSequenceOperation operation,
     [NotNull] MigrationCommandListBuilder builder)
 {
     throw new NotImplementedException();
 }
예제 #2
0
 /// <summary>
 /// 删除索引。
 /// </summary>
 /// <param name="operation">操作实例。</param>
 /// <param name="builder"><see cref="MigrationCommandListBuilder"/>实例对象。</param>
 protected virtual void Generate(
     [NotNull] DropIndexOperation operation,
     [NotNull] MigrationCommandListBuilder builder)
 {
     throw new NotImplementedException();
 }
예제 #3
0
 protected virtual void EndStatement([NotNull] MigrationCommandListBuilder builder)
 {
     Check.NotNull(builder, nameof(builder));
     builder.EndCommand();
 }
예제 #4
0
 /// <summary>
 /// 修改表格。
 /// </summary>
 /// <param name="operation">操作实例。</param>
 /// <param name="builder"><see cref="MigrationCommandListBuilder"/>实例对象。</param>
 protected virtual void Generate(
     [NotNull] AlterTableOperation operation,
     [NotNull] MigrationCommandListBuilder builder)
 {
 }
예제 #5
0
 /// <summary>
 /// 添加索引的相关定义。
 /// </summary>
 /// <param name="operation">操作实例。</param>
 /// <param name="builder"><see cref="MigrationCommandListBuilder"/>实例。</param>
 /// <param name="isPrimaryKey">是否为主键。</param>
 protected virtual void IndexTraits(
     [NotNull] MigrationOperation operation,
     [NotNull] MigrationCommandListBuilder builder,
     bool isPrimaryKey = false)
 {
 }