Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

Mapping oracle tables with entityframework

$
0
0

Hi
I have a little question
I have an wcf service with entityframework and it uses oracle
I have the following table:
CREATE TABLE "SGCI"."PAGRAPRUC"
( "IDPAGRAPRUC" NUMBER(10,0) NOT NULL ENABLE,
"IDPAGORAPIDO" NUMBER(10,0),
"NUMERORUC" CHAR(11),
"IDADQUIRENTE" NUMBER(1,0),
"CODIGOADQUIRENTE" CHAR(2),
"LOGUSUARIO" VARCHAR2(30),
"LOGFECHA" DATE,
"LOGIP" VARCHAR2(50),
"ESTADOPROCESADORA" CHAR(1),
"IDPAGORAPIDORUCMASIVO" NUMBER(10,0),
"TIPOREGISTRO" CHAR(1),
"INCLUIDO" CHAR(1),

I want to use "database first" model.
But I am not sure..
will the wizard create the same datatypes when I use different entityframework versions?
What happen when I use "Oracle.managedDataAccess"?

For instance...
I have some doubts, will IDPAGRAPRUC be converted to "int" in all cases?
Or some libraries can generate "Int64" instead of "int"

This is the result with "database first"... of my table
public partial class PAGRAPRUC
{
public int IDPAGRAPRUC { get; set; }
public Nullable<int> IDPAGORAPIDO { get; set; }

I used these link:

https://csharp.today/entity-framework-6-database-first-with-oracle/

https://santimacnet.wordpress.com/2014/07/25/oracle-integration-odac-developers-tools-with-visual-studio/

To complete the configuration


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>