I want to update an object without first loading the object from the database.
I did this, but only knowing all the properties of entities, and then using the "attachto" method.
My problems: I do not want my application to need to remember all the properties. Example:
Dim customerEntitiy As New shopper customerEntitiy.shopper_id = CustomerData.CustomerID customerEntitiy.market_code = CustomerData.MarketSector customerEntitiy.email = CustomerData.Email customerEntitiy.modified = DateTime.Now context.AttachTo("shopper", customerEntitiy) context.SaveChanges()
This object also has a "created" field. I do not want to pass this "created" date completely through my n-level application. How can I just “not update” this field when saving to the database? Thank you Floor
Paul lemke
source share