public TradelrRepository() { db = new tradelrDataContext(); #if DEBUG //db.Log = new DebuggerWriter(); #endif }
public TradelrRepository(tradelrDataContext _db) { db = _db; }
public static user GetUserByPasswordHash(this tradelrDataContext db, string hash, long subdomainid) { return(GetUserByPasswordHashQuery(db, hash, subdomainid)); }
public static user GetUserById(this tradelrDataContext db, long sessionid, long subdomainid) { return(GetUserByIdQuery(db, sessionid, subdomainid)); }
public static MASTERsubdomain GetSubDomainByID(this tradelrDataContext db, long id) { return(GetSubDomainByIDQuery(db, id)); }
public static MASTERsubdomain GetSubDomain(this tradelrDataContext db, string name) { return(GetSubDomainQuery(db, name)); }
public static MASTERsubdomain GetCustomHostname(this tradelrDataContext db, string hostname) { return(GetCustomHostnameQuery(db, hostname)); }