ok oracle and selfservice adapter not loading

Posts   
 
    
buckd30
User
Posts: 15
Joined: 20-May-2009
# Posted on: 29-Jun-2009 17:52:32   

ok folks I have a oracle selfservice data layer but the entity is refusing to bring back any data its my text cotnrols are just sitting their blank. Now when i used to use the entiy factory I would have use the adpater.fill method is their something simlar i have to do here.. this is in my form load method

        WebComplaintsEntity webc = new WebComplaintsEntity();
        webc.Id = Convert.ToInt32(Request.QueryString["id"]);
        webc.IsNew = false;

        txtprogress.Text = webc.Progress;

        txtdescription.Text = webc.Description;
        Response.Write("Test " + webc.Progress.ToString());
        txtprogress.Text = webc.Progress;

regards david

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 30-Jun-2009 03:13:31   

Hi David,

You should to initialize the entity with the primary key to get back the data:

WebComplaintsEntity webc = new WebComplaintsEntity(Convert.ToInt32(Request.QueryString["id"]));
...

For more info read Instantiating an existing entity.

David Elizondo | LLBLGen Support Team