Async database operation.

85 views
Skip to first unread message

gamma...@gmail.com

unread,
Aug 16, 2013, 8:21:09 AM8/16/13
to blto...@googlegroups.com
Async database operation is necessary to avoid thread-blocking by slow database read/write.

especially in C# 5.0, keyword await simpfied the async programming much.

When can we have this feature added into BLtoolkit?  some code example

public abstract class PersonAccessor : DataAccessor
{
    [SqlText(@"SELECT * FROM Person WHERE FirstName = @firstName")]
    public abstract Task<List<Person>> GetPersonListByFirstName(string @firstName);

    [SprocName("sp_GetPersonListByLastName")]
    public abstract Task<List<Person>> GetPersonListByLastName(string @lastName);
}
Reply all
Reply to author
Forward
0 new messages