示例#1
0
        public User FindByEmail(string email)
        {
            var dataTables = Enumerable.Range(0, 2).Select(i => new DataTable()).ToArray();

            _dataFetcher.Fill(dataTables, "FindUserByEmail",
                              new SqlParameter("@Email", email));

            return(GetUserFromDataTables(dataTables));
        }