Hi, I am a newbie.
In my scenario I have seperated my Interface of my Data / Business Layer.
I use my Business Layer as a service and Clients don't have LLBL reference.
I can send Data to Clients using IList or Projections.
Client, updates data binded to grid or form and sends it back to Business Layer Service.
I want to update more than one row at a time.
What's the easiest way to construct and update Entity Collections from DataTable or IList?
I have tried the EntityCollection Constructor but somehow it didn't work.
My code is;
// i can save the package entity without problem
PackageEntity pack = new PackageEntity(package.PackageID);
pack.PackageName = package.PackageName;
pack.PackageDescription = package.PackageDescription;
pack.Save();
// I have Products & Product Quotas which belongs to a Package and I want to update them. package.QuotaTable has records but this doesn't load data into ProductQuotaCollection.
ProductQuotaCollection pQuotas = new ProductQuotaCollection((IList<ProductQuotaEntity>)package.QuotaTable);
pQuotas.SaveMulti();
Also I am trying to do this stateless. I mean there may be no ProductQuotaCollection loaded at server. So I thing first I have to load them, update and save changes.
Thanks for help...