Problem Entity framework and short types

I am using the Entity Framework in Visual Studio to access a table in my oracle database. Problem is when selecting a record in runtime the following error shows up:
Value was either too large or too small for an Int16
This error originates when trying to access a table-field declared as number(5). The framework translates this in a short field. The max value for short is 32767, but the value in the table is 36001.
Can I solve this?
thanks.

Yes, you need to change the mapping for that type to an int32. To do that you can add this to your configuration file:
<oracle.dataaccess.client>
<settings>
<add name="int16" value="edmmapping number(4,0)" />
<add name="int32" value="edmmapping number(9,0)" />
</settings>
</oracle.dataaccess.client>
You should then update the model to get the new changes. Note that I've found that I have to change the types manually in the model, but after I do that once it works fine. Documentation is here: http://docs.oracle.com/cd/E11882_01/win.112/e18754/featLINQ.htm

Similar Messages

  • Entity Framework : A short way to copy one object with it's child to a new object ?

    Hello !
    I'm using entity framework 6.
    Sometimes I need to copy an existing object with all its childs to a new object and to save to database.
    I'm using a standart way by creating a new object , copy one by one it's properties from existing object ( except the ID ) , after I create new object for every child and copy one by one each properties except the ID and Parent id......
    But of course this is a hard way to do especially when the object have a lot's of properties.
    I want to know is there any short way  ( built in) to do this ?
    Thank you !

    Actually , I'm using this extension :
    Imports System.ComponentModel
    Imports System.Collections
    Imports System.Data.Entity.Core.Objects.DataClasses
    Imports System.Runtime.Serialization
    Imports System.IO
    Imports System.Reflection
    Module Extensions
    <System.Runtime.CompilerServices.Extension> _
    Public Function Clone(Of T As EntityObject)(source As T) As T
    Dim ser = New DataContractSerializer(GetType(T))
    Using stream = New MemoryStream()
    ser.WriteObject(stream, source)
    stream.Seek(0, SeekOrigin.Begin)
    Return CType(ser.ReadObject(stream), T)
    End Using
    End Function
    <System.Runtime.CompilerServices.Extension> _
    Public Function ClearEntityReference(source As EntityObject, bCheckHierarchy As Boolean) As EntityObject
    Return source.ClearEntityObject(bCheckHierarchy)
    End Function
    <System.Runtime.CompilerServices.Extension> _
    Private Function ClearEntityObject(Of T As Class)(source As T, bCheckHierarchy As Boolean) As T
    If source Is Nothing Then
    Throw New Exception("Null Object cannot be cloned")
    End If
    Dim tObj As Type = source.[GetType]()
    If tObj.GetProperty("EntityKey") IsNot Nothing Then
    tObj.GetProperty("EntityKey").SetValue(source, Nothing, Nothing)
    End If
    If Not bCheckHierarchy Then
    Return CType(source, T)
    End If
    Dim PropertyList As List(Of PropertyInfo) = (From a In source.[GetType]().GetProperties() Where a.PropertyType.Name.Equals("ENTITYCOLLECTION`1", StringComparison.OrdinalIgnoreCase) Select a).ToList()
    For Each prop As PropertyInfo In PropertyList
    Dim keys As IEnumerable = CType(tObj.GetProperty(prop.Name).GetValue(source, Nothing), IEnumerable)
    For Each key As Object In keys
    Dim childProp = (From a In key.[GetType]().GetProperties() Where a.PropertyType.Name.Equals("EntityReference`1", StringComparison.OrdinalIgnoreCase) Select a).SingleOrDefault()
    childProp.GetValue(key, Nothing).ClearEntityObject(False)
    key.ClearEntityObject(True)
    Next
    Next
    Return CType(source, T)
    End Function
    End Module
    But the problem is that when I try to use like this :
    Dim litm, newitm as MyObject
    For Each litm In itemlist
    newitm = litm.Clone()
    newitm.ClearEntityReference(True)
    context.MyObjects.Add(newitm)
    Next
    context.SaveChanges()
    I get an error :
    Public member 'Clone' on type 'MyObject' not found.

  • Install ODAC (11.2.0.2.30) Entity Framework and LINQ to Entities Failed

    Hi
    I am trying to install ODAC for Entity Framework & Link.
    But, while installing, there showed a message *"OS error, the Oracle MTS Recovery Service can't be started"*,
    and there were three choices, *"Ignore, Cancel, Retry"*.
    If I choose *"Cancel"*, the installing will be stopped, and if I choose 'Retry', it will always try to restart the MTS service, but in vain.
    If I choose *"Ignore"*, the setup will go on, but the MTS service can't be started as usual, and shows a message *"Function error"*.
    Is there anyway to fix the problem, so I can successfully install ODAC on my pc?
    Oh,BTW, I have installed the Oracle 10g and Oracle Developer 6i on my pc for other reasons, and I can't remove them.
    Will it be the reason cause the ODAC installation failure?
    Environment :
    OS: Win XP Pro 32bit
    Framework : .net 4.0
    Visual Studio 2010
    Oracle 10g
    Oracle Developer 6i

    I haven't seen a download link for 11.2.0.2.*+40+* yet. If that's the new beta version, it hasn't been released yet. We're still on beta 1 (11.2.0.2.30).
    Trust me, a lot of people are looking forward to it. :)

  • Help with Oracle Entity Framework and synonyms

    Hi.
    I have some troubles using schemas and synonyms of tables. It means that we are working with diferent schemas, one of those is the owner of tables and other one use synonyms with permissions to access, modify and delete in these tables, this one is the schema that the application use. So whats the way to use this synonyms to tables using the application schema with Entity Framework?
    While I'm using the application data schema I couldn't get data from tables, because the application schema doesn't have tables just use synonyms to them.
    Thanks in advanced
    Cesar.

    I have the same problem. I have created a data connection in the VS2010 server explorer to my oracle database. In the filter I have added the schemas that my user id has access to and the tables are shown in the server explorer. However, when I go through the ADO.NET entity wizard, the tables are not shown.

  • VS2010, Entity Framework, and TNS Less connection strings

    I am playing around with the Oracle 11g ODP.NET stuff and the Visual Studio 2010 integration. I am trying to create and entity data model, but I am connecting to a RAC cluster with a TNS Less connection string (Example at bottom). Previously I've had to use Oracle's OLE DB drivers to connect, however I would love to be able to leverage the Entity Framework in my next project. When I go to create a new connection in my VS project, the Connection Properties dialog pops up with option to choose the Data Source. I choose Oracle, but then I don't see a way to connect in the way that I have to. Any help would be appreciated. Thank you.
    Connection String Example:
    Data Source=(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = someHost.prod.someDomain.net)(PORT = 9991)) (ADDRESS = (PROTOCOL = TCP)(HOST = someHost2.prod.someDomain.net)(PORT = 9991)) (ADDRESS = (PROTOCOL = TCP)(HOST = someHost3.prod.someDomain.net)(PORT = 9991)) (ADDRESS = (PROTOCOL = TCP)(HOST = someHost4.prod.someDomain.net)(PORT = 9991)) (LOAD_BALANCE = yes) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = myService.myDomain.com)));User Id=myUser;Password=myPassword;

    Hello cshay, you're right, I had the wrong version installed. I'm sure I selected the beta first, but I suppose I downloaded the stable version after creating my Oracle account.
    Thanks cshay, and sorry to bother you all with such a question!

  • Entity Framework 6 and Odata v4

    I have built a simple WebAPI 2.2 project, using Entity Framework 6 and OData v4. I have a SQL server database that exists and would like to build an OData service for read-only reporting purposes. the database is a simple
    two table database in test that represents a possible development effort. The primary key on the Primary table is the configid (auto increment). The Primary key on the secondary table is the combination of the configid (link to primary), and the date descending.
    There is typically one update of the data per day and I need the most recent first.
    Running the project I can do all that you would expect. I can query the configs "/odata/configs". I can query a single entity "/odata/configs(1)", and I can query the detail "odata/configs(1)/detail". When I do this I get all
    x-thousand records for the last several years... most recent first... Great! My final effort in this project is to page the data at the client... I test the uri by using the following: "odata/configs(1)/detail?top=10". This results in 10 elements,
    however it is actually the bottom of the table data... not the sort order of the key in the sql table... can someone explain how I would go about fixing this particular issue?
    The goal is to use this service to produce a client that would visualize data changes over time. Paging would need to occur as you would typically expect. The client expects typical uri syntax, i.e. top, skip... in order to page the data. however the sort
    order is throwing the paging... Is there documentation on how to alter Entity Framework and Odata 4 queries to produce custom results? I am in the early stages of discovery on these technologies, but I anticipate more customization...
    I recall reading somewhere that Entity Framework requires a unique id on every table... is this true, and would that solve the problem? Altering the database in test would be easy enough... in practice however, not so much! Options?
    Primary Table:
    configid: int [primary key]
    name: string
    Secondary Table:
    configid: int (link to primary)
    date: datetime
    data: varchar(200)
    I created a new Web API 2.2 project and added the Entity Frameworks 6.1.2 and Odata 4.x. 

    Hello Stewart,
    According to your description, it seems that your issue is more related the Odata RestAPI, I suggest you could post it to the WebAPI forum:
    http://forums.asp.net/1246.aspx/1?Web+API
    And for paging querying in WebAPI, there is a blog I think which might be helpful:
    http://blogs.msdn.com/b/youssefm/archive/2013/02/19/paging-with-asp-net-web-api-odata.aspx
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Entity framework TPT does not work - showstopper

    Greetings,
    I'm experiencing a similar problem that is described here:
    [Entity Framework and inheritance - Possible bug in EF?|http://stackoverflow.com/questions/11506683/entity-framework-and-inheritance-possible-bug-in-ef.]
    I'm using:
    Windows 7 64 bit
    ODAC 11.2 Release 5 32 bit
    Oracle Express 11.2 on localhost
    Visual Studio 2012
    Entity framework 5.0
    .net 4.5
    Create a simple database with TPT inheritance:
    CREATE TABLE Person(
    Id NUMBER(38, 0) NOT NULL,
    Name VARCHAR2(50),
    CONSTRAINT PK100 PRIMARY KEY (Id)
    CREATE TABLE Employee(
    Id NUMBER(38, 0) NOT NULL,
    JobTitle VARCHAR2(50),
    CONSTRAINT PK101 PRIMARY KEY (Id)
    ALTER TABLE Employee ADD CONSTRAINT ref_Employee_person
    FOREIGN KEY (Id)
    REFERENCES Person(Id)
    CREATE TABLE Superhero(
    Id NUMBER(38, 0) NOT NULL,
    Superpower VARCHAR2(50),
    CONSTRAINT PK102 PRIMARY KEY (Id)
    ALTER TABLE Superhero ADD CONSTRAINT ref_Superhero_person
    FOREIGN KEY (Id)
    REFERENCES Person(Id)
    -- Sequence
    CREATE SEQUENCE seq_id
    INCREMENT BY 1
    START WITH 55
    MINVALUE 1
    MAXVALUE 9999999999999999999999999999
    NOCYCLE
    NOORDER
    CACHE 20
    CREATE OR REPLACE TRIGGER PERSON_BI BEFORE INSERT ON PERSON FOR EACH ROW
    BEGIN IF :NEW.ID IS NULL THEN SELECT SEQ_ID.NEXTVAL INTO :NEW.ID FROM DUAL; END IF; END;
    Create a console application, add an edmx file, set up inheritance like so:
    Diagram
    And I set the Id property in Person entity as StoreGeneratedPattern to Identity
    Then I created the following program:
    static void Main(string[] args)
    //Employee
    var db = new Entities();
    EMPLOYEE e = new EMPLOYEE() { ID = 0, JOBTITLE = "Programmer"};
    e.NAME = "John Regular Doe";
    db.People.Add(e);
    //Superhero
    SUPERHERO s = new SUPERHERO();
    s.NAME = "Superman";
    s.SUPERPOWER = "Flight";
    db.People.Add(s);
    db.SaveChanges();
    //Fetch all persons and look at the type
    //this is where I get an error:
    var allPeople = db.People.ToList();
    allPeople.ForEach(x => Console.WriteLine("type: " + x.GetType()));
    This throws the following error when I fetch into allPeople:
    All objects in the EntitySet 'Entities.People' must have unique primary keys. However, an instance of type 'TestingTPTInheritance.EMPLOYEE' and an instance of type 'TestingTPTInheritance.SUPERHERO' both have the same primary key value, 'EntitySet=People;ID=38'.
    Looking at the database everything looks fine
    -- Person table --
    ID     NAME
    39     John Regular Doe
    40     Superman
    -- Employee table --
    ID     JOBTITLE
    39     Programmer
    -- Superhero table --
    ID     SUPERPOWER
    40     Flight
    If I take the select that EF generates in " db.People.ToList();" and run it I get the following result:
    C1      C2     NAME      C3      C4
    0X0X     40     Superman           
    0X0X     39     John Regular Doe     Programmer     
    Is this a bug in ODAC. If so is there a workaround or will there be a fix soon?
    Edited by: Amplus on 7.11.2012 07:59

    Thank you for the reply shsu
    I was being careless when I copied the error message and sequence, sorry about that. I did run this serveral times after I copied the error message. I recreate the seqence starting with 1 and recreated the problem. The error message is:
    All objects in the EntitySet 'Entities.People' must have unique primary keys. However, an instance of type 'TestingTPTInheritance.EMPLOYEE' and an instance of type 'TestingTPTInheritance.SUPERHERO' both have the same primary key value, 'EntitySet=People;ID=2'.
    The data in the tables is:
    Person:
    ID     NAME
    1      John Regular Doe
    2      Superman
    employee
    ID     JOBTITLE
    1      Programmer
    Superhero
    ID     SUPERPOWER
    2      Flight
    And the generated select is:
    SELECT
    CASE WHEN (( NOT (("Project1"."C2" = 1) AND ("Project1"."C2" IS NOT NULL))) AND ( NOT (("Project2"."C2" = 1) AND ("Project2"."C2" IS NOT NULL)))) THEN '0X' WHEN (("Project1"."C2" = 1) AND ("Project1"."C2" IS NOT NULL)) THEN '0X0X' ELSE '0X1X' END AS "C1",
    CAST( "Extent1"."ID" AS number(19,0)) AS "C2",
    "Extent1"."NAME" AS "NAME",
    CASE WHEN (( NOT (("Project1"."C2" = 1) AND ("Project1"."C2" IS NOT NULL))) AND ( NOT (("Project2"."C2" = 1) AND ("Project2"."C2" IS NOT NULL)))) THEN NULL WHEN (("Project1"."C2" = 1) AND ("Project1"."C2" IS NOT NULL)) THEN "Project1"."JOBTITLE" END AS "C3",
    CASE WHEN (( NOT (("Project1"."C2" = 1) AND ("Project1"."C2" IS NOT NULL))) AND ( NOT (("Project2"."C2" = 1) AND ("Project2"."C2" IS NOT NULL)))) THEN NULL WHEN (("Project1"."C2" = 1) AND ("Project1"."C2" IS NOT NULL)) THEN NULL ELSE "Project2"."SUPERPOWER" END AS "C4"
    FROM "TPT"."PERSON" "Extent1"
    LEFT OUTER JOIN (SELECT
    "Extent2"."JOBTITLE" AS "JOBTITLE",
    CAST( "Extent2"."ID" AS number(19,0)) AS "C1",
    1 AS "C2"
    FROM "TPT"."EMPLOYEE" "Extent2" ) "Project1" ON ( CAST( "Extent1"."ID" AS number(19,0))) = "Project1"."C1"
    LEFT OUTER JOIN (SELECT
    "Extent3"."SUPERPOWER" AS "SUPERPOWER",
    CAST( "Extent3"."ID" AS number(19,0)) AS "C1",
    1 AS "C2"
    FROM "TPT"."SUPERHERO" "Extent3" ) "Project2" ON ( CAST( "Extent1"."ID" AS number(19,0))) = "Project2"."C1"
    With the following result:
    C1      C2     NAME      C3      C4
    0X0X     2      Superman      null      null --> should't there be a "Flight" entry here??
    0X0X     1      John Regular Doe     Programmer     null
    I also tried this:
    var result1 = db.People.OfType<SUPERHERO>().ToList(); //Count=1
    var result2 = db.People.OfType<EMPLOYEE>().ToList(); //Count=1
    var result3 = db.People.OfType<PERSON>().ToList(); //Throws the following error:
    All objects in the EntitySet 'Entities.People' must have unique primary keys. However, an instance of type 'TestingTPTInheritance.EMPLOYEE' and an instance of type 'TestingTPTInheritance.SUPERHERO' both have the same primary key value, 'EntitySet=People;ID=2'.
    The only thing I can think of is that my little console app is picking up the oracle client from oracle express instead of the ODAC driver. Is there an easy way to force it to use the correct driver? I have this in my config file but I'm not sure if it works:
    <oracle.dataaccess.client>
    <settings>
    <add name="DllPath" value="C:\oracle\product\11.2.0\client_3\bin" />
    </settings>
    </oracle.dataaccess.client>
    And I have also referenced Oracle.Data.Access here:
    C:\oracle\product\11.2.0\client_3\odp.net\bin\4\Oracle.DataAccess.dll
    client_3 directory is my ODAC Release 5 installation. I changed the config settings to:
    <oracle.dataaccess.client>
    <settings>
    <add name="DllPath" value="C:\oracle\product\11.2.0\client_3\odp.net\bin\4\Oracle.DataAccess.dll" />
    </settings>
    </oracle.dataaccess.client>
    then the program was able to run this line:
    var allPeople = db.People.ToList();
    But both objects were of type EMPLOYEE. Then I ran this:
    var result1 = db.People.OfType<SUPERHERO>().ToList();
    and get the following error:
    All objects in the EntitySet 'Entities.People' must have unique primary keys. However, an instance of type 'TestingTPTInheritance.EMPLOYEE' and an instance of type 'TestingTPTInheritance.SUPERHERO' both have the same primary key value, 'EntitySet=People;ID=2'.
    The problem must be that I do have multiple versions of Oracle client installed on my computer and it is picking up the wrong one either when I'm generating the edmx file or when the application is connecting to the db. I think my next step will be to uninstall all oracle client instances as well as oracle express and try again from scratch!!

  • Transaction abort Entity framework - Oracle 10g

    Hi.
    I have a problem using entity framework and Oracle 10g, i m using a transactionScope in my code, but when the transaction is finishing is throwed a exception "Transaction Abort" , it's a problem only when i am using Oracle i don't have any problem with SQL server.
    Thanks in advance for your help.

    Hi.
    I have a problem using entity framework and Oracle 10g, i m using a transactionScope in my code, but when the transaction is finishing is throwed a exception "Transaction Abort" , it's a problem only when i am using Oracle i don't have any problem with SQL server.
    Thanks in advance for your help.

  • Best Practices for Using Service Controller for Entity Framework Database

    I'm running into an issue in my first time creating a Web Service with a .NET backend with Azure. I designed a database in Entity Framework and had it create the models, but I couldn't create a controller for the table unless I made the model inherit from
    EntityData. Here's the catch, the Database Model has int Id, but EntityData has string Id, so, of course, I'm getting errors. What is best practice for what I'm trying to do?
    Michael DiLeo

    hi Michael,
    Thanks for you posting!
    Sorry for I am not totally understanding your issue. Maybe two points need your confirm:
    1. I confuse with the "Service controller"? IS your meaning MVC controller? Or ServiceController(http://www.codeproject.com/Articles/31688/Using-the-ServiceController-in-C-to-stop-and-start
    2.whether  The type of ID in the model is match to the database ? In other words, Is the type of IDin .edmx matched to the database?
    By the way, it seems that this issue is more related to EF. You could post this issue on EF discussion for better support.
    Thanks & Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Want to use the Entity Framework for Oracle

    Currently our web applications are installed on Windows 2003 Server, IIS 6.0. Yes, this seems like the dark ages...years behind. They have an older version of the Oracle Client on the machine (11.0.1). This version does not support Oracle.DataAccess 4.x. .NET Framework 4.0 is installed on the Windows 2003 server. This version also does not support the Entity Framework.
    However, my development environment does not have any Oracle Client installed. I am just using the latest version of ODAC/ODP.NET with Visual Studio 2010. I am able to create apps locally with the Entity Framework but unfortunately cannot get them to work on the server because there of the older Oracle Client on that machine. Also there are approx. 50 applications on that server that are accessing this old version of OracleDataAccess 2.116.0 with references hard coded in the web.config. What's the best practice for dealing with legacy applications that are accessing older versions of Oracle?
    In short, what do I need to do in order to upgrade to the version of Oracle that will support the Entity Framework while still supporting legacy apps? Do I go for an Oracle Client upgrade or I just merely get the latest version of ODAC/ODP.NET installed on that server?
    Thanks!
    Edited by: imterpsfan2 on Mar 7, 2013 12:01 PM

    imterpsfan2 wrote:
    What I would probably like to do is somehow set the dll directory to my local bin directory and just put all the .dlls for the most recent ODP.NET in my app and leave the existing applications as they are until I can migrate them.
    I've seen examples of this but doesn't seem to work for me.You can do that by having both Oracle clients installed, and using the DLLPath configuration option to force the applications to use the one you want.
    That said, the next version of the managed client is going to support working in Entity Framework, and that is just an assembly you can include in the project with no Oracle installation at all. So really, the best answer is going to be to use that once they release it.
    (Also - most of the time something compiled for Oracle 11.x will work in 11.2.0.3 without doing anything. The 11.2.0.3 installer adds binding redirects to itself from older versions, provided you were loading from the GAC.)

  • Need some samples to make Entity framework interact with WPF

    HI guys,
    I need to create an app which will query all details about customer from very big database for different search crieria. I don't have any sp to call individual section details of customer. so i planned to go with Entity framework and WPF. Both are new to
    me.
    Could someone please help me  with creating good WPF application (beautiful look and feel) & entity framework interaction with DB?
    or any other to make this requirement in an easy way with latest technologies.. All i need some good UI for searching customer details..
    thanks in advance
    Regards
    bala
    Balamurugan

    I (obviously) agree my sample is something to look at.
    Since it's the first in a series rather than a complete guide it cuts a number of corners.
    One to emphasise is that I almost never allow a user to edit in a datagrid directly.
    I either use popups so they are forced to work on one record at a time.
    Or I have a different usercontrol for a particular task a user does - like raising an order say.
    The second in the series is on the way.  Not sure when exactly but next month.  I have the code ready but I've not written the article for it yet.  Depending on your timescales you might find that useful.
    Also read this:
    http://social.technet.microsoft.com/wiki/contents/articles/26673.wpf-collectionview-tips.aspx
    That explains some dynamic filtering on the client and touches on a way to haul bits of a HUGE set of data onto the client.
    You definitely don't want to do that all at once.
    The thing to emphasis is you should always be looking to give the user a subset to look at.
    Think in terms of  a maximum of 200 to 300 records at a time in a datagrid.
    Linq with EF offers pass through queries.
    You will almost certainly want to use that feature in order to pick all the customers starting with the letter A or in town xyz or whatever.
    You use  linq on the client and it is turned into sql on the database.
    One thing which is sort of odd about linq is that the sql is generated when you iterate a collection.  That has an odd benefit which is great for flexible querying.
    You can base one linq query on another and chain your various criteria together.
    That only generates sql when you use that end result.
    Hope that helps.
    Recent Technet articles:
    Property List Editing;  
    Dynamic XAML

  • Could not load file or assembly entity framework 5 .Access denied

    Hi All,
    I am using secure store applicatin id(set credentials using my windows account) to get the data from sql server using entity framework and WCF.
    When trying to run webservice I am getting below error
    System.IO.FileLoadException: Could not load file or assembly 'EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. Access is denied.
    here i am trying to impersonate using my account. All works well when I give access to bin folder.
    But this is not correct. I can't give access to myself to bin folder or temp .
    is there anyway to get rid of this error.
    Any help is appreciated.

    I think giving access to bin or temp folder is not good. Also, EF dll in Gac is not good approach.
    I am wodering why the first time deployed dll is working and if i do iisreset then it's not working
    below is the detail error
    System.IO.FileLoadException: Could not load file or assembly 'EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. Access is denied. 
    File name: 'EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'     at test.test.Services.PropertyService.GetAllProperties(Nullable`1 startRow, Nullable`1 itemCount)     at test.test.Services.PropertyService.GetAllProperties(Nullable`1
    batchSize) in d:\user\PropertyServices\test.test.Services\PropertyService.svc.cs:line 36    === Pre-bind state information ===  LOG: User = Unknown  LOG: DisplayName = EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 
    (Fully-specified)  LOG: Appbase = file://... 
    07/02/2014 13:49:52.69* w3wp.exe (0x05AC)                        0x3630 test SharePoint      Error                        
     00000 High     .../E:/Sites/  LOG: Initial PrivatePath = E:\Sites\bin  Calling assembly : test.test.Services.Model, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.  ===  LOG: This bind starts in default
    load context.  LOG: Using application configuration file: E:\Sites\web.config  LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config  LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config. 
    LOG: Post-policy reference: EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089  LOG: Attempting download of new URL
    file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/6a4208e7/8a408e87... 
    07/02/2014 13:49:52.69* w3wp.exe (0x05AC)                        0x3630 LandSecurities SharePoint      Error                        
     00000 High     .../EntityFramework.DLL.  LOG: Attempting download of new URL
    file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/6a4208e7/8a408e87/EntityFramework/EntityFramework.DLL.  LOG: Attempting download of new
    URL file:///E:/Sites/bin/EntityFramework.DLL.  ERR: A fatal error occurred when retrieving next codebase for download (hr = 0x80070005).

  • Microsoft open sourced the Entity Framework

    http://weblogs.asp.net/scottgu/archive/2012/07/19/entity-framework-and-open-source.aspx
    Microsoft wants others to get involved in building the next version of the Entity Framework.
    The source code is found here:
    http://entityframework.codeplex.com/
    The Mono Project is working to get the open sourced Entity Framework to work on Mono.
    So, with Oracle working on a thin ODP.NET provider, hopefully, it will work on Mono too. But no guarantee from Oracle. I know at first, the thin ODP.NET provider will not support Entity Framework, but down the road it could (hopefully).

    I'm using NHibernate and I'm more satisfied with it than EF.
    Alex said that the final release for managed provider will come with Oracle 12 which maybe will come at the end of the year.

  • Installing ODAC Entity Framework with oracle express

    Hi, I need to develop a .net web app with oracle back end. To setup development env. for oracle I downloaded oracle database express edition 11g 2. and installed it succesfully. after I tried to install this ODAC it throws me a error
    "Remove all the spaces from the chosen ORACLE_HOME" help me out to resolve this,
    Can I use SQL Developer to connect to Oracle Express. Kindly help me out asap.

    Hello,
    This is by designed in Entity Framework, the view is not designed to be editable by default. If you persist in editing a view, you need to create an editable view, for details, please check this blog:
    How to create an updateable view with ADO Entity Framework and with LINQ to SQL
    This blog is based on the SQL Server database, however, I notice that you are working with the Oracle database, I am not sure if the Oracle database provider for Entity Framework supports the editable view, I
     suggest you could confirm this on the Oracle database forum:
    https://community.oracle.com/welcome
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Call StoreProcedure in Code First Entity FrameWork

    i want to call store procedure by Code First Entity Framework and language:c# . it return one value of string.can i help me?

    hi,
    try this link :
    http://stackoverflow.com/questions/3500509/calling-user-defined-functions-in-entity-framework-4
    this also can help
    http://blogs.msdn.com/b/efdesign/archive/2011/01/21/table-valued-function-support.aspx
    and this:
    http://www.entityframeworktutorial.net/EntityFramework5/table-valued-function-in-entity-framework5.aspx

Maybe you are looking for

  • Transport request for BW queries and roles.

    Hi All, we need to craete 20 bw queries on 4 multiproviders. We need to save 18 queries as workbooks in one role and the other 2 queries in other role.  Both the roles and queries does not exist and will be created in Developement environment. We jus

  • Hard drive format?

    Hi I've got 3 internal hard drives on my Mac pro -1 x 320 and 2 x 750 - my Macintosh HD is the 320, my Media A - has all video, Media B is time Machine BU...so the 320 and Media B are both Mac OS Extended (Journaled)...but the Media A drive is only f

  • LMS 4.2 Create Portlet from Custom Poller

    Hi folks, I create a custom poller, and would like to add it as a portlet.  I see that histo and live-graph it allow you to configure custom values, but they don't seem to accomplish what I need.  I'd just like a portlet showing the specific output f

  • Deployment question for EMS and Data Objects

    I have configured tens of EMS and data objects. It's deployment time to a new environment, say Dev to Test. Do i have to manually create all this data objects and EMS in each environment, or is it possible to write a script or deployment script to do

  • Report Question - Multiple CSQ - Single Avg Queue Time?

    Multiple CSQ - Single Avg Queue Time? I haave multiple CSQs, and I'm able to get certain data like Service Level averaged for all of them becuase I can get the data from reports, but not so for Average QueueTime (time to answer) - anyone have ideas o