无法理解如何通过Respawn重新设定种子。ReseedSql属性是私有集。如何设置此属性?我没有看到一个带有参数来设置私有setter的构造函数。我应该重写检查点类吗?
public class Checkpoint
{
private GraphBuilder _graphBuilder;
private IList<TemporalTable> _temporalTables = new List<TemporalTable>();
public string[] TablesToIgnore { get; set; } = new string[0];
public string[] TablesToInclude { get; set; } = new string[0];
public string[] SchemasToInclude { get; set; } = new string[0];
public string[] SchemasToExclude { get; set; } = new string[0];
public string DeleteSql { get; private set; }
public string ReseedSql { get; private set; }
public bool CheckTemporalTables { get; set; } = false;
internal string DatabaseName { get; private set; }
public bool WithReseed { get; set; } = false;
public IDbAdapter DbAdapter { get; set; } = Respawn.DbAdapter.SqlServer;
public int? CommandTimeout { get; set; }
}
}https://stackoverflow.com/questions/69257387
复制相似问题