Exemplo n.º 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
        }
Exemplo n.º 2
0
 public override void Configure(DomainOptions options)
 {
     options.UseOracle(this.GetConnectionString());
     options.UseNewtonsoftJson();
 }