Beispiel #1
0
 public TrackableContainerTest(IDbConnectionProvider dbConnectionProvider, ISqlProvider sqlProvider)
     : base(useList: false, useSet: true, useDuplicateCheck: true)
 {
     _db     = dbConnectionProvider;
     _mapper = new TrackableContainerSqlMapper <ITestContainer>(
         sqlProvider,
         new[]
     {
         Tuple.Create("Person", new object[]
         {
             "TrackableContainerPerson",
             new[] { new ColumnDefinition("ContainerId", typeof(int)) }
         }),
         Tuple.Create("Missions", new object[]
         {
             "TrackableContainerMission",
             new ColumnDefinition("MissionId"),
             new[] { new ColumnDefinition("ContainerId", typeof(int)) },
         }),
         Tuple.Create("Aliases", new object[]
         {
             "TrackableContainerAlias",
             new ColumnDefinition("Value", typeof(string), 64),
             new[] { new ColumnDefinition("ContainerId", typeof(int)) }
         }),
     });
     _mapper.ResetTableAsync(_db.Connection, true).Wait();
 }
 public TrackableContainerIgnoreTest(IDbConnectionProvider dbConnectionProvider, ISqlProvider sqlProvider)
 {
     _db = dbConnectionProvider;
     _mapper = new TrackableContainerSqlMapper<ITestContainerWithIgnore>(
         sqlProvider,
         new[]
         {
             Tuple.Create("Person", new object[]
             {
                 "TrackableContainerIgnoreTestPerson",
                 new[] { new ColumnDefinition("ContainerId", typeof(int)) }
             }),
         });
     _mapper.ResetTableAsync(_db.Connection, true).Wait();
 }
 public TrackableContainerIgnoreTest(IDbConnectionProvider dbConnectionProvider, ISqlProvider sqlProvider)
 {
     _db     = dbConnectionProvider;
     _mapper = new TrackableContainerSqlMapper <ITestContainerWithIgnore>(
         sqlProvider,
         new[]
     {
         Tuple.Create("Person", new object[]
         {
             "TrackableContainerIgnoreTestPerson",
             new[] { new ColumnDefinition("ContainerId", typeof(int)) }
         }),
     });
     _mapper.ResetTableAsync(_db.Connection, true).Wait();
 }