c# - DataContext.Refresh not refreshing the object -


I have a datacentext where I communicate with the database after doing the following:

 < Code> private DAL.Client _client; Public Zero Redirect Client () {DBContext.Refresh (RefreshMode.OverwriteCurrentValues, _client); }  

I expect this method to sync the client object back with the database, but for some reason _client.Relationship (which is the collection of relationships) has not been updated. . Can you please give me some input on where I am away?

  public zeros reloadCurerent client () {DBContext.Refresh (RefreshMode.OverwriteCurrentValues, DBContext .Clients); }  

This 2 parameter attempt is an object unit. I think DBCTextext is your data context object & amp; Client is your table name. When you write DAL; Press After that you will see that it automatically adds to your table name. Then DBCTXT I hope this works for you.


Comments