static IQueryable <YobaAttribute> YobaAttributes(YobaDb db) => db.Attributes .Select(x => new YobaAttribute { Id = x.Id, Name = x.Attribute_Column });
static IQueryable <YobaNote> YobaNotes(YobaDb db) => db.Notes .Select(x => new YobaNote { Content = x.Content, Created = x.Added, Updated = x.Updated, Name = x.NoteName, DisplayName = x.DisplayNoteName, });
static IQueryable <YobaProfileAttribute> YobaProfileAttributes(YobaDb db) => db.ProfileAttributes .Select(x => new YobaProfileAttribute { Value = x.Value, ProfileId = x.ProfileId, AttributeId = x.AttributeId, AttributeName = x.Attribute.Attribute_Column, ProfileName = x.Profile.MainName });
static IQueryable <YobaProfile> YobaProfiles(YobaDb db) => db.Profiles.Select(x => new YobaProfile { Id = x.Id, Loisy = x.Loisy, Slivi = x.Slivi, Zashkvory = x.Zashkvory, CanVote = x.CanVote, MainName = x.MainName });