Format:
Recent snippets matching tags of Transaction
public IQueryable<T> Query(Expression<Func<T, bool>> predicate) { IQueryable<T> returnValue; using (ITransaction transaction = _session.BeginTransaction()) { try { returnValue = _session.Linq<T>().Where(predicate); transaction.Commit(); }
63 Views
no comments
set nocount on -- build a working table called x if (object_id('x') is not null) drop table x create table x (col1 varchar(50)) declare @sql nvarchar(500) set @sql = 'insert into x select ''test'';'
74 Views
1 comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
