/// <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(); }
/// <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(); }
protected virtual void EndStatement([NotNull] MigrationCommandListBuilder builder) { Check.NotNull(builder, nameof(builder)); builder.EndCommand(); }
/// <summary> /// 修改表格。 /// </summary> /// <param name="operation">操作实例。</param> /// <param name="builder"><see cref="MigrationCommandListBuilder"/>实例对象。</param> protected virtual void Generate( [NotNull] AlterTableOperation operation, [NotNull] MigrationCommandListBuilder builder) { }
/// <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) { }