Esempio n. 1
0
        public SqlCeTestDatabase(string name)
        {
            _name = name;

            ConnectionString      = string.Format(ConnectionStringFormat, name);
            ProviderName          = "System.Data.SqlServerCe.4.0";
            ProviderManifestToken = "4.0";
            SqlGenerator          = new SqlCeMigrationSqlGenerator();
            Info = CreateInfoContext(new SqlCeConnection(ConnectionString), false);
        }
Esempio n. 2
0
        public SqlCeTestDatabase(string name)
        {
            Check.NotEmpty(name, "name");
            _name = name;

            ConnectionString      = ModelHelpers.SimpleCeConnectionString(name);
            ProviderName          = "System.Data.SqlServerCe.4.0";
            ProviderManifestToken = "4.0";
            SqlGenerator          = new SqlCeMigrationSqlGenerator();
            Info = CreateInfoContext(new SqlCeConnection(ConnectionString), false);
        }
        public SqlCeTestDatabase(string name)
        {
            if (string.IsNullOrWhiteSpace(name))
            {
                throw new ArgumentException("'" + name + "' can not be null or empty.");
            }

            _name = name;

            ConnectionString      = ModelHelpers.SimpleCeConnectionString(name);
            ProviderName          = SqlCeProviderServices.ProviderInvariantName;
            ProviderManifestToken = "4.0";
            SqlGenerator          = new SqlCeMigrationSqlGenerator();
            Info = CreateInfoContext(new SqlCeConnection(ConnectionString), false);
        }