Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var q = this.Session.CreateQuery(@"update Contact set Selection = REPLACE(';' + Selection + ';', :fromPara, :toPara) where ';' + Selection + ';' like :fromWhere");
- q.SetParameter("fromPara", ";" + from + ";");
- q.SetParameter("toPara", ";" + to + ";");
- q.SetParameter("fromWhere", "%;" + from + ";%");
- q.ExecuteUpdate();
Add Comment
Please, Sign In to add comment