Beispiel #1
0
        public static void InitializeDomain(DomainOptions options)
        {
#if VENDOR_SQLSERVER
            options.UseSqlServer(ConnectionString);
#elif VENDOR_POSTGRES
            options.UsePostgres(ConnectionString);
#elif VENDOR_SQLITE
            options.UseSqlite(ConnectionString);
#elif VENDOR_ORACLE
            options.UseOracle(ConnectionString);
#elif VENDOR_MYSQL
            options.UseMySql(ConnectionString);
#endif
        }
Beispiel #2
0
 public override void Configure(DomainOptions options)
 {
     options.UseSqlServer(GetConnectionString());
     options.UseNewtonsoftJson();
 }
 public void Configure(DomainOptions options)
 {
     options.UseSqlServer("SERVER=.;DATABASE=jerrystore;TRUSTED_CONNECTION=true");
 }