public static List <T> GetEntities(Func <T, bool> query) { try { List <T> results = new List <T>(); results = EntityDb <T> .GetByLinqQuery(query); EntityDb <T> .CloseSession(); return(results); } catch (Exception) { throw; } }
public static List <T> GetEntities(Func <T, bool> query) { try { List <T> results = new List <T>(); results = EntityDb <T> .GetByLinqQuery(query); EntityDb <T> .CloseSession(); return(results); } catch (Exception) { throw; } }