Source

main-vinayFork / Source / WebService / Web.Admin.DataLayer / CompiledQueries / AdminUserQueries.cs

Full commit
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq;

namespace DataUp.Web.Admin.DataLayer
{
    public class AdminUserQueries
    {
        /*private static readonly Func<AdventureWorksEntities, Decimal, IQueryable<SalesOrderHeader>> s_compiledQuery2 = 
    CompiledQuery.Compile<AdventureWorksEntities, Decimal, IQueryable<SalesOrderHeader>>(
            (ctx, total) => from order in ctx.SalesOrderHeaders
                            where order.TotalDue >= total
                            select order);*/

       /* private static readonly Func<DCXLAdminEntities, string, string, bool> _isAuthenticatedUser =

            CompiledQuery.Compile<DCXLAdminEntities, string, string, bool>((ctx, userName, passWord) =>
                ctx.AdminUsers.Any(q => q.UserName == userName && 
                                        q.Password == passWord && 
                                        q.IsActive == (q.IsActive.HasValue ? (bool)q.IsActive : false))
            
            );  */

        
    }
}