I would second the ability for using linq statements to do deletes / 
updates. Yes there is hql, but some people don't use hql at all because you 
can use linq.

On Sunday, April 22, 2012 3:44:46 AM UTC-6, Ricardo Peres wrote:
>
> Hi!
>
> Sorry for getting in the middle of your discussion... just wanted to ask 
> one thing: some guys implemented strongly typed update and delete 
> operations on top of LINQ for Entity Framework (
> https://github.com/loresoft/EntityFramework.Extended).
> For example:
>
> //delete all users where FirstName matches
> context.Users.Delete(u => u.FirstName == "firstname");
>
> //update all tasks with status of 1 to status of 2
> context.Tasks.Update(
>     t => t.StatusId == 1, 
>     t2 => new Task {StatusId = 2});
>
> //example of using an IQueryable as the filter for the update
> var users = context.Users.Where(u => u.FirstName == "firstname");
> context.Users.Update(users, u => new User {FirstName = "newfirstname"});
>
> Do you think this would be something interesting for NHibernate?
>
> Thanks,
>
> RP
>
>
> On Saturday, April 21, 2012 8:00:38 PM UTC+1, Oskar Berggren wrote:
>>
>> So what do we do now that NH 3.3.0GA is released? 
>>
>> There are already several interesting pull requests lined up, some of 
>> which are new features. I propose that the next planned version will 
>> be 3.4.0. 
>>
>>
>> What about possible as yet undetected regressions in NH 3.3.0GA? Do 
>> you think it would be a good idea to hold of merging to the master 
>> branch for a week or so in case any important regressions pops up and 
>> we want to do a 3.3.1? One can do this from a branch of course, but 
>> without the assistance of the excellent build server. 
>>
>>
>> /Oskar 
>>
>

Reply via email to