I try the new ORM model and I can't figure out how to use it in disconnected environment:
I have this code :
public static ObjectContainer.ChangeSet GetContractors()
ObjectContainer.ChangeSet changeSet =
using (TslDBContext dbContext = new TslDBContext())
IQueryable<Contractor_List> contractors = from c in dbContext.Contractor_Lists select c;
var container = new ObjectContainer();
IObjectCollector collector =
typeof(Contractor_List).Name, contractors, collector);
changeSet = container.GetContent();
but I don;t know how to wrap the list contractors in a changeset . Dbcontext cannot be casted to IObjectscope.
Do you have any example with this new orm model in disconnected environment ? The book open access made easy is outdated and
I can't find anything to help me. Really, guys, you have great products but the documentation sucks . I don't want to spend one week searching how to make one line of code.If you want to prom ote a new way to work , please document it.
I tried data wizard and is not working with Winforms , only with web forms.