/// /// Gets {propertyName}. /// /// The database context. /// How many {propertyName} to skip. /// How many {propertyName} to take. (Default = 50) /// Optional Order direction /// Optional where predicate. /// Optional order by predicate. /// A bool if the result is successful and a projection of the first occurrence of {propertyName}. public static (bool, System.Collections.Generic.List<{returnTypeFullName}>) Get{propertyName}(this {contextFullName} dbContext, int skip = 0, int take = 50, int orderDir = 1) { if (take > 200) take = 200; var query = dbContext .{propertyName} .Skip(skip) .Take(take) .Select(x => new {returnTypeFullName}(x)); var result = query.ToList(); return (result.Any(), result); }