Exemple #1
0
 static IQueryable <YobaAttribute> YobaAttributes(YobaDb db) =>
 db.Attributes
 .Select(x => new YobaAttribute
 {
     Id   = x.Id,
     Name = x.Attribute_Column
 });
Exemple #2
0
 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,
 });
Exemple #3
0
 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
 });
Exemple #4
0
 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
 });