Hi Pavel,
Currently EF can only generate and submit INSERT, UPDATE and DELETE operations based on changes tracked on objects loaded into memory. You are basically describing the feature request tracked here: https://entityframework.codeplex.com/workitem/52. The best way to workaround the limitation is to bypass EF mappings either by putting the update statement in a stored procedure you can execute or by issuing it directly through the raw SQL APIs, e.g. ExecuteSqlCommand and SqlQuery.
Hope this helps,
Diego
Currently EF can only generate and submit INSERT, UPDATE and DELETE operations based on changes tracked on objects loaded into memory. You are basically describing the feature request tracked here: https://entityframework.codeplex.com/workitem/52. The best way to workaround the limitation is to bypass EF mappings either by putting the update statement in a stored procedure you can execute or by issuing it directly through the raw SQL APIs, e.g. ExecuteSqlCommand and SqlQuery.
Hope this helps,
Diego