/// <summary> /// /// </summary> /// <param name="dbContext"></param> /// <param name="entity"></param> /// <returns></returns> public static async Task <GUIDEntity> GetGUIDEntityByGUIDAsync(this GUIDEntityDbContext dbContext, GUIDEntity entity) => await dbContext.GuidEntities.FirstOrDefaultAsync(guidEntity => guidEntity.GuidValue == entity.GuidValue);
/// <summary> /// /// </summary> /// <param name="dbContext"></param> /// <returns></returns> public static IQueryable <GUIDEntity> GetGUIDEntities(this GUIDEntityDbContext dbContext) { var query = dbContext.GuidEntities.AsQueryable(); return(query); }