コード例 #1
0
ファイル: TestBase.cs プロジェクト: viktortat/Realmius
        public virtual void Setup()
        {
            var context = new LocalDbContext();

            var config = new ShareEverythingConfiguration(() => new LocalDbContext(), typeof(DbSyncObject));

            context.EnableSyncTracking = false;
            context.DbSyncObjects.Delete();
            context.IdIntObjects.Delete();
            context.IdGuidObjects.Delete();
            context.DbSyncObjectWithIgnoredFields.Delete();
            context.UnknownSyncObjectServers.Delete();
            context.CreateSyncStatusContext().SyncStatusServerObjects.Delete();
        }