Update entity

I have an entity manager used in container managed session bean
1. I execute finder of EntittyA and get A object
2. I execute setter method of A object setx
3. I execute setter method of A object sety
4. I execute finder method of EntityB ang get B object
t this point when I at step 4 the entity manager executd the updates for entityA
But I dont want to execute these updates up to Executing persist method.
İs there a way to say the container controlled session facade to do this
Best regards

Hello,
Not sure exactly what you mean by "up to Executing persist method" but it sounds like you don't want queries to cause a flush of the EntityManager. Please see the FlushModeType setting, which by default is set to AUTO. The other option for this setting is COMMIT. The difference is that under Auto, the provider is "responsible for ensuring that all updates to the state of all entities in the persistence context which could potentially affect the result of the query are visible to the processing of the query" where as under commit, it is undefined. In essence, queries under the COMMIT setting might return data that doesn't take into account changes made in the current transaction.
You can set/change the flushmode on either the EntityManager or the EJBQuery level using the setFlushMode method.
Best Regards,
Chris

Similar Messages

  • Updating entity bean requires lot of effort in Jdeveloper

    Is there a simple way of updating entity bean when a table is modified in database?

    I forgot the 13" had the internal battery. The battery could still be the problem though. Here is a guide to open the computer and check it.
    http://macosg.me/2/go
    Check out the new remodeled MacOSG website! 24-hour Apple-related news & support.
     MacOSG: An Apple User Group  iTunes: MacOSG Podcast  Follow us on Twitter: MacOSG

  • Problems updating Entity services or application services

    Hello all,
    I'm working with SAP Netweaver Developer Studio creating a new CAF application.
    First all, I import the SAP Entreprise Service, then I model the entity service, I expose my application Service as a Web Service and finally I deploy it and test it.
    However, when I try to edit my entity service (for instance, including a new attribute) or application service (for instance, changing the bussiness logic code) and I redeploy it, the Web Service Navigator doesn't update the changes.
    So, sadly I must start again configuring the entity and application service.
    Any idea??
    Thanks,

    everytime you change the signature (structure of input/output) of the entity or application service, the change is not automatically propagated to the web service definition. you have to delete manually the web service configuration for the entity or application service or recreate it. you can call it a bug or a feature. it's up to you.

  • Update entity attribute, auto-refresh ViewObject

    Hi,
    I have an entity Emp and a ViewObject based on this entity with a where clause like "salary > 2000".
    I update the salary from 1900 to 2100 at entity level, but the viewObject is not "automatically-refreshed". So my Employee with his new salary 2100 is not shown in the viewObject.
    I understand that the whereClause does not use attribute value of entity.
    What the best way to trigger the executeQuery of the dependant views ?
    Thanks for idears ?
    Rafael.

    Hi friend!!
    I've found a solution for my problem, if it helps you take it, I Override a method in the view called Aftercommit so when I save in my JSP automatically refresh the model and show these in the screen.
    public void afterCommit(TransactionEvent event) {
    // TODO: Override this oracle.jbo.server.ViewObjectImpl method
    super.afterCommit(event);
    super.executeQuery();
    Maybe it is late but, someone else could it help!!
    Griss!!! (CIS)
    Mensaje editado por:
    user472974

  • Problem in updating entity sevice record

    i am doing a POC for update through Web Dynpro
    I have made an entity sergvice with a field as fname-short text- i create a record in it as  below and save its guid in a context varialbe
    AFirstOne one = FirstOneServiceProxy.create();
    one.setFname("hello");
    one.getAspect().sendChanges();
    wdContext.currentContextElement().setKey(one.getGuid());
    Now i am trying to update the same record --
    AFirstOne first = FirstOneServiceProxy.read
    (wdContext.currentContextElement().getKey());
    if (first ==null)
    {  wdComponentAPI.getMessageManager().reportSuccess("null");
    else
    {  wdComponentAPI.getMessageManager().reportSuccess("not null");
    wdComponentAPI.getMessageManager().reportSuccess(first.getGuid());
    first.setFname("bye");
    first.getAspect().sendChanges();
    The not null and guid  is printed but the record is not updated  inn the table
    Can anyone plaes suggest me the reason  for this?
    What am i doing wrong ?

    Hi
    Data is Saved to database in two Steps.
    Step 1 : call sendChanges() method on <entity>.getAspect()
    Step 2 : call save method on ServiceFacade.
    IServiceFacade  serviceFacade =
    CAFServiceFactory.getServiceFacade(
    <class Name>);
    serviceFacade.save();
    This will save the entty .
    The Call to the "Save" Method  is missing in your Code.
    regards
    Rajendra

  • Cf9 - flex - orm updating entity with a relation

    Hello,
    I'm trying to update a cf9 orm entity with a one-to-many relation defined as follow:
    Articles
    property name="ArticleID" column="ArticleID" type="numeric" ormtype="int" fieldtype="id" default="0" generator="identity" unsavedvalue="0";
    property name="ModelName" column="ModelName" type="string" ormtype="string" ;
    property name="Description" column="Descrption" type="string" ormtype="string" ;
    property name="ArticleImages" type="array" fieldtype="one-to-many" cfc="Images" fkcolumn="ArticleID" fetch="join" remotingfetch="true" cascade="all-delete-orphan";                       
    Images
    property name="ArticleImageID" column="ArticleImageID" type="numeric" ormtype="int" fieldtype="id" generator="identity" default="0" unsavedvalue="0";
    property name="ArticleID" column="ArticleID" type="numeric" ormtype="int"; 
    property name="FilePath" column="FilePath" type="string" ormtype="string";
    Everything works fine if I update (entitysave) Articles by a coldFusion page.
    If I try by a Flex app using remoteObject all records are written with right values but I receive a fault event with a message which say the ArticleID of the table Images can't contain a Null value.
    In fact in the database the ArticleID field is right updated but I don't know why I receive always the same error.
    The remote object mapping seems to be right established.
    I'm testing with a SQL2008R2 database and all the tables have an IDENTITY primary key field.
    Does anybody have experienced this situation ?
    How can I solve this problem ?
    Thanks,
    Daive

    Did you have tried "entitymerge" instead of "entitysave" ?

  • Update Entity Service using Web Dynpro

    Hi,
    I am pretty new to Web Dynpro. I have defined an Entity Service which is working. With Web Dynpro I can create new entities using:
    ASomething newSomething = SomethingServiceProxy.create();
    newSomething.setX(x);
    newSomething.getAspect().sendChanges();
    Now I would like to update this entity and tried:
    ... wdContext.currentSomethingElement().modelOject();
    mySomething.setX(y);
    newSomething.getAspect().sendChanges();
    unfortunately this is not working. The database is not updated. How to solve this problem?
    Thanks in advance!
    Felix

    Hi
    thanks for the answer, but I think you do not have to call serviceFacade.save() and unfortunately it did not help.
    I found a solution, but I think it is more a work around. There should be a better option...
    ASomething something = wdContext.currentSomethingElement().modelOject();
    ASomething something2 = SomethingServiceProxy.read(something.getGuid());
    something2.setX(y);
    something2.getAspect().sendChanges();
    using this coding the DB is updated.
    Why is it not possible to call directly:
    somethin.getAspect().sendChanges()
    Thanks,
    Felix
    Message was edited by:
            Felix Japs

  • Updating Entity Bean (URGENT)

    Hello,
    I have an entity bean created in my jdeveloper based on a table in my database, I have added two colomns to my table how do I make my entity synchronize(update) with the database table and generate GET and SET methods for the(new colomns)in the altered table.
    regards,
    Hussam Galal

    EJB spec does not allow update of the primary key. Any other update should be fine.
    Regards,
    Marina

  • Mutations to update entity store by several versions - confused

    I am slightly confused about how mutations work. We have been working in our development environments making changes to a particular entity as follows:
    Version 1 - deleted a field. It was not marked as a database key. Added a deleter like this:
    new Deleter(XXXXXXX.class.getName(), 0, "xxxxx")
    Version 2 - added a field. It is not marked as a database key, hence incremented version number, but no mutation code.
    Version 3 - deleted a filed. It is not marked as a database key. Added a deleter like this:
    new Deleter(XXXXXXX.class.getName(), 2, "yyyyy")
    This worked fine for multiple deployments in local development environments, but when we tried to deploy to a test environment, we got this error message when trying to initialise the database:
    Caused by: com.sleepycat.persist.evolve.IncompatibleClassException: (JE 4.0.103) Mutation is missing to evolve class: com.chello.booking.model.XXXXXXX version: 0 to class: com.chello.booking.model.XXXXXXX version: 3 Error: Field is not present or not persistent: yyyyy
    Mutation is missing to evolve class: com.chello.booking.model.XXXXXXX version: 1 to class: com.chello.booking.model.XXXXXXX version: 3 Error: Field is not present or not persistent: yyyyy
    (Note that when upgrading an application in a replicated environment, this exception may indicate that the Master was mistakenly upgraded before this Replica could be upgraded, and the solution is to upgrade this Replica.)
         at com.sleepycat.persist.impl.PersistCatalog.init(PersistCatalog.java:440)
         at com.sleepycat.persist.impl.PersistCatalog.<init>(PersistCatalog.java:221)
         at com.sleepycat.persist.impl.Store.<init>(Store.java:186)
    This is not a replicated environment. I had a read through the documentation and don't see anything that prevents us from working like this. Can anyone explain what is going on please?
    Incidentally, in case it matters, this is how the mutations are handled during entity store initialisation:
    storeConfig.setMutations(mutations);
    storeConfig.setAllowCreate(true);
    storeConfig.setTransactional(true);
    EntityModel model = new AnnotationModel();
    model.registerClass(XXXXXXX.class);
    storeConfig.setModel(model);
    entityStore = new EntityStore(......
    Kind regards
    James

    Hi James,
    Mutations must be configured to transform all old versions to the current version. So you also need:
    new Deleter(XXXXXXX.class.getName(), 0, "yyyyy")
    new Deleter(XXXXXXX.class.getName(), 1, "yyyyy")
    I figured this out from the version numbers in the error messages. Note that there are two error messages listed in the exception. The doc explains this in a little more detail, although in very abstract way:
    http://www.oracle.com/technology/documentation/berkeley-db/je/java/com/sleepycat/persist/evolve/package-summary.html
    Mutations are therefore responsible for converting each existing incompatible class version to the current version as defined by a current class definition. For example, consider that class-version A-1 is initially changed to A-2 and a mutation is added for converting A-1 to A-2. If later changes in version A-3 occur before converting all A-1 instances to version A-2, the converter for A-1 will have to be changed. Instead of converting from A-1 to A-2 it will need to convert from A-1 to A-3. In addition, a mutation converting A-2 to A-3 will be needed.When you say this:
    This worked fine for multiple deployments in local development environments, but when we tried to deploy to a test environment, we got this error message when trying to initialise the database:I worry that you're evolving your environment separately on different machines. This won't work. I'm not sure exactly what happened, but if you add mutations and create multiple new versions in a development environment, that sequence of steps won't work for the deployed environment that hasn't gone through the same sequence of steps. Perhaps something like this is what happened.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Find does not return updated entity

    Dear all,
    I have a problem understanding entityManager.find(...) function.
    According to the documentation, as well as the book "Pro JPA 2 - Mastering the Java™ Persistence API" (Mike Keith, Merrick Schincariol), the method should attempt to return the entity from the Persistence Context, if it is managed, or from the underlying DB, if not.
    Well, that doesn't happen to me when I rollback the active transaction, and than start it again. Although the transaction rolled back, and the Persistence Context should be cleared, when I start a new transaction (and get supposingly a fresh new Persistence Context), find() returns me the old state of the entity which I changed externally between two transactions.
    To simplify the problem I created a test JPA-based application (java 6, netbeans 6.9, toplink, mysql) with the following code:
    public static void main(String[] args) {
    em.getTransaction().begin();
    Node test = em.find(Node.class, 14303);
    System.out.println("node id:14303 name:" + test.getIdName());
    if (args.length > 0) {
    String nodeName = args[0];
    test = em.find(Node.class, 14303);
    test.setName(nodeName);
    System.out.println("node renamed to:" + test.getIdName());
    test = null;
    em.flush();
    em.getTransaction().commit();
    System.out.println("transaction commited");
    } else {
    em.getTransaction().rollback();
    System.out.println("transaction rollback");
    System.out.println("node id:14303 is managed:" + em.contains(test));
    test = null;
    try {
    System.out.println("waiting 7 sec");
    Thread.sleep(10000);
    System.out.println("wake up");
    } catch (InterruptedException ex) {
    System.out.println(ex);
    em.getTransaction().begin();
    System.out.println("transaction begin");
    test = em.find(Node.class, 14303);
    System.out.println("node id:14303 name:" + test.getIdName());
    System.out.println("node id:14303 is managed:" + em.contains(test));
    em.getTransaction().rollback();
    Node entity:
    @Entity
    @Table(name = "node")
    public class Node implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id;
    @Basic(optional = false)
    @Column(name = "name")
    private String name;
    public Node() {
    public String getName() {
    return name;
    public void setName(String name) {
    this.name = name;
    public String getIdName() {
    return getName() + " (id:" + this.getId() + ")";
    public Integer getId() {
    return id;
    public void setId(Integer id) {
    this.id = id;
    I run main application from two command lines.
    From the first command line window I run the app WITHOUT command line arguments.
    So, it does not change entity, but only read its state twice, in two transactions, with break of 10sec between rollback of the first trans and begin of the second.
    While the first process is in waiting mode for 10sec, I run the second process with command line arguments (for example: "test1"), which changes the entity quickly. This process finishes within 10 secs of the pause of the first process.
    Now, when the first process comes out of the pause, I expect it to see the change done by the second process.
    However, this does not happen. Can anybody figure out why?
    Here's the output I get:
    first process (read-only):
    node id:14303 name:test123 (id:14303)
    transaction rollback
    node id:14303 is managed:false
    waiting 7 sec
    wake up
    transaction begin
    node id:14303 name:test123 (id:14303)
    node id:14303 is managed:true
    second process (entity changing):
    node id:14303 name:test123 (id:14303)
    node renamed to:test1 (id:14303)
    transaction commited
    transaction begin
    node id:14303 name:test1 (id:14303)
    node id:14303 is managed:true
    Thanks a lot for all help in advance.
    Best,
    Bojan
    Edited by: user13250216 on Dec 21, 2010 1:09 AM

    You have two different process, which is equivalent of having two different servers, so you need some clustered cache mechanism to keep both shared cache in sync.
    I'm not aware Oracle fixed their design issue with shared cache disablement. So if you disable the shared cache you could get stackoverflow in some undefined scenario.

  • External Database Updates Automatically Updating Entity Beans

    Hi,
    I have a Java GUI which displays the contents of a table. One row is displayed on the GUI for each row in the table.
    The data is accessed by the Java GUI from the table using a container Managed Entity Bean.
    If I insert a row in the table from Oracle's SQL command prompt, can the GUI be automatically refreshed to display the new row that was inserted in the table i.e. does weblogic container receive any message which can be trapped by the entity bean to automatically reload the content of the table.
    Regards,
    Dinesh

    "Dinesh Mehta" <[email protected]> wrote in message
    news:3bd5eba3$[email protected]..
    Hi Dinesh,
    I think there is a requirements/design problem here.
    First, it's hardly possible to implement a callbacks
    from the DB layer to a container layer.
    Second, what would happend to the GUI if many
    changes to the database ocure simultaneously?
    I thinks this is a GUI user who has to request
    a refresh when it's necessary.
    Regards,
    Slava Imeshev
    I have a Java GUI which displays the contents of a table. One row isdisplayed on the GUI for each row in the table.
    >
    The data is accessed by the Java GUI from the table using a containerManaged Entity Bean.
    >
    If I insert a row in the table from Oracle's SQL command prompt, can theGUI be automatically refreshed to display the new row that was inserted in
    the table i.e. does weblogic container receive any message which can be
    trapped by the entity bean to automatically reload the content of the table.

  • Update Entity Model from Database in edmx

    Dear All
    Thank you for your attention.
    I would like to know the easy way to modify the edmx after changes of database.
    e.g. I modified a order table 's primary key from OrderNumber to ID
    and so the foreign key constraint to another table is also changed from OrderNumber to ID
    then open existing edmx and  'Update Model from Database'.
    The tables are changed but there are errors
    Error 1
    Error 111: Properties referred by the Principal Role t1 must be exactly identical to the key of the EntityType Model.t1 referred to by the Principal Role in the relationship constraint for Relationship Model.FK_t2_t11. Make sure all the key properties are specified
    in the Principal Role.
    and two relations exists
    How to modify the current edmx to let it works?
    Thanks
    Best Regards
    mintssoul

    Hello mintssoul,
    >>I would like to know the easy way to modify the edmx after changes of database.
    I suggest you could firstly delete these modified entities in the design window(it will delete these type definition in emdx file) and then use Update Model from Database command to re-generate these entities.
    Regards,
    Fred.
    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.

  • How to create View Object with Multiple Updatable Entity Objects

    I want both the entities in the view object to support creating new rows but when i give create insert it allows to insert only on the parent and not the child. I found this link
    http://docs.oracle.com/cd/E21043_01/web.1111/b31974/bcadvvo.htm#CEGCAJCI which overrides the exiting classes. but i would like to do it declarative . Is there any other way to do it?
    I am using Jdeveloper 11g version 2.
    Thanks in advance,
    Rakesh

    But when i tried to add a new row it showed this error
    oracle.jbo.AttrValException: JBO-27014: Attribute LookupTypeId1 in FoundationModuleAM.VikLookupTypeBaseVO is required.
         at oracle.jbo.server.JboMandatoryAttributesValidator.validate(JboMandatoryAttributesValidator.java:224)
         at oracle.jbo.server.EntityDefImpl.validate(EntityDefImpl.java:3095)
         at oracle.jbo.server.EntityCache.validate(EntityCache.java:3599)
         at oracle.jbo.server.EntityImpl.validateEntity(EntityImpl.java:2285)
         at oracle.jbo.server.EntityImpl.validate(EntityImpl.java:2464)
         at oracle.jbo.server.DBTransactionImpl.validate(DBTransactionImpl.java:4515)
         at oracle.insurance.viking.foundation.model.common.VikingDBTransactionImpl.validate(VikingDBTransactionImpl.java:46)
         at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2008)
         at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2352)
         at oracle.insurance.viking.foundation.model.common.VikingDBTransactionImpl.commit(VikingDBTransactionImpl.java:37)
         at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1590)
         at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1415)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1428)
         at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
         at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)
         at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)
         at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:112)
         at oracle.jbo.uicli.controls.JUNavigationBar$NavButton.actionPerformed(JUNavigationBar.java:118)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
         at java.awt.Component.processMouseEvent(Component.java:6289)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6054)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4652)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
         at java.awt.EventQueue.access$000(EventQueue.java:85)
         at java.awt.EventQueue$1.run(EventQueue.java:603)
         at java.awt.EventQueue$1.run(EventQueue.java:601)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
         at java.awt.EventQueue$2.run(EventQueue.java:617)
         at java.awt.EventQueue$2.run(EventQueue.java:615)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

  • Is it possible to update the data in entity via System.Data.Entity.DbSet entity

     If i want to insert a record in dynamically created entity, i can do something like,
    System.Data.Entity.DbSet entity = Request.Context.Set(obj.GetType());
    Object Updated = entity.Add(obj);
    but if i want to update the record in same entity how can i do that? Please help i am new to EF.

    Hello Sidra,
    >>but if i want to update the record in same entity how can i do that? Please help i am new to EF.
    If you use the object type, you need to modify its properties by using reflection because at compile time, the type is not known to compiler:
    https://msdn.microsoft.com/en-us/library/axt1ctd9(v=vs.110).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.

  • System.Data.Entity.DbSet entity doesn't get updated with sequence nextval

    I am using EF6 with oracle 12c client. I need dynamic entity object to be added in System.Data.Entity.DbSet
    System.Data.Entity.DbSet entity = Request.Context.Set(obj.GetType());
    Object Updated = entity.Add(obj);
    Result_SaveChanges = Request.Context.SaveChanges();
    int sequence = Request.Context.Database.SqlQuery<int>("SELECT " + SeqName + ".currval FROM DUAL").FirstOrDefault();
    Save Changes doesn't update the object's key but fetching the sequence give me the updated value. I need System.Data.Entity.DbSet entity to be properly updated so that i can insert child entities too through their navigation properties.

    Hello Sidra,
    Since you are working with EF based on Oracle database provider, for this, i suggest that you could post it to the Oracle related 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.

Maybe you are looking for