これが私がこれまでに持っているものです。何か間違っているのでしょうか、それとも 3.0.0.3 にバグがありますか?
var Repository = new SimpleRepository("DBConnectionName");
using (TransactionScope ts = new TransactionScope())
{
using (SharedDbConnectionScope scs = new SharedDbConnectionScope("connstring", "providerName"))
{
try
{
for (int i = 0; i < 5; i++)
{
Supplier s = new Supplier();
s.SupplierCode = i.ToString();
s.SupplierName = i.ToString();
Repository.Add<Supplier>(s);
}
ts.Complete();
}
catch
{
}
}
}
SubSonic DbDataProvider public DbConnection CurrentSharedConnection { get { return __sharedConnection; でエラーが発生しました。}
protected set
{
if(value == null)
{
__sharedConnection.Dispose();
など.. __sharedConnection == null :( Object Null Reference Exception :(