/// <summary> /// /// </summary> /// <param name="dbContext"></param> /// <param name="appCode"></param> /// <returns></returns> public static IEnumerable <Db_AppLink> DbAppLink(this DbContextEx dbContext, string appCode) { return(dbContext.DbAppLink("SELECT * " + "FROM UT_AppLink " + "WHERE AppCode = @AppCode " + "AND Active = 0 ", new { AppCode = appCode })); }
/// <summary> /// /// </summary> /// <param name="dbContext"></param> /// <param name="appCode"></param> /// <param name="mode"></param> /// <returns></returns> public static Db_AppLink DbAppLink(this DbContextEx dbContext, string appCode, string mode) { return(dbContext.DbAppLink("SELECT * " + "FROM UT_AppLink " + "WHERE AppCode = @AppCode " + "AND Mode = @LinkMode " + "AND Active = 0 ", new { AppCode = appCode, LinkMode = mode }).FirstOrDefault()); }