Пример #1
0
        private static void SetupConnections()
        {
            ClusterHelper.Initialize(new ClientConfiguration
            {
                Servers = new List <Uri> {
                    new Uri("couchbase://localhost")
                }
            });
            _bucket = ClusterHelper.GetBucket("sqltocb");

            var db = new SqlConnection("data source=(local);initial catalog=sqltocb;integrated security=True;");

            _context = new SqlToCbContext(db);
        }
Пример #2
0
 public ShoppingCartMigrator(IBucket bucket, SqlToCbContext context)
 {
     _bucket  = bucket;
     _context = context;
 }
Пример #3
0
 public SocialMediaMigrator(IBucket bucket, SqlToCbContext context)
 {
     _bucket  = bucket;
     _context = context;
 }