serenity-is / Serenity

Business Apps Made Simple with Asp.Net Core MVC / TypeScript
https://serenity.is
MIT License
2.59k stars 795 forks source link

Sergen oracle support #5279

Closed MaziarSangi closed 3 years ago

MaziarSangi commented 3 years ago

Hi EveryBody Does Sergen Supports Oracle Database ?

kilroyFR commented 3 years ago

I am using it since 2017 with Oracle Db and yes it works.

MaziarSangi commented 3 years ago

Thanks @kilroyFR So you can Generate all classes with Sergen from Oracle Db in Asp.net core? If yes could you please show ConnectionString and another settings that required for oracle? honesty I am new to Oracle thank you so much.

VictorTomaili commented 3 years ago

@kilroyFR thanks for answer, @mugambiwarwema
Can you continue this discussion on stackoverflow instead issues? If you faced any bug etc, you can open issue there. But for questions we prefer stackoverflow.

So with your indulgence, I close this issue.

sispk6 commented 3 years ago

in appsettings

 "Data": {
    "Default": {
      "ConnectionString": "Data Source=192.168.1.4:1521/db19c;User Id=EA;Password=eE6sA",
      "ProviderName": "Oracle.ManagedDataAccess.Client"
    }
MaziarSangi commented 3 years ago

Thank you @sispk6 I have installed Oracle.ManagedDataAccess.Core and sql developer to create tables. But wen I Load Sergen It gives me Error While Running Sergen.

Nathan2020-0126 commented 3 years ago

@sispk6, could you please give me more hint? I still cannot work with oracle. My appsetting "WMS_DB": { // "ConnectionString": "Data Source=(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.128.16.23)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = SCPRD)));User Id=wmwhse2;Password=WMwhSqlWMwhSql2;", "ConnectionString": "Data Source=10.128.16.23:1521/SCPRD;User Id=wmwhse2;Password=WMwhSqlWMwhSql2;", "ProviderName": "Oracle.ManagedDataAccess.Client" }

RegisterDataProviders ` public static void RegisterDataProviders() { DbProviderFactories.RegisterFactory("System.Data.SqlClient", SqlClientFactory.Instance); DbProviderFactories.RegisterFactory("Microsoft.Data.Sqlite", Microsoft.Data.Sqlite.SqliteFactory.Instance); DbProviderFactories.RegisterFactory("Oracle.ManagedDataAccess.Client", Oracle.ManagedDataAccess.Client.OracleClientFactory.Instance); // to enable FIREBIRD: add FirebirdSql.Data.FirebirdClient reference, set connections, and uncomment line below // DbProviderFactories.RegisterFactory("FirebirdSql.Data.FirebirdClient", FirebirdSql.Data.FirebirdClient.FirebirdClientFactory.Instance);

        // to enable MYSQL: add MySql.Data reference, set connections, and uncomment line below
        // DbProviderFactories.RegisterFactory("MySql.Data.MySqlClient", MySql.Data.MySqlClient.MySqlClientFactory.Instance);

        // to enable POSTGRES: add Npgsql reference, set connections, and uncomment line below
        // DbProviderFactories.RegisterFactory("Npgsql", Npgsql.NpgsqlFactory.Instance);
    }

`

N4N commented 1 year ago

It is solved here fam: https://github.com/serenity-is/Serenity/pull/3309