コード例 #1
0
 public static void MapLiteDbEntities(LiteDB.BsonMapper mapper)
 {
     mapper.Entity <Emulator>().
     Id(a => a.Id, false).
     Ignore(a => a.SelectableProfiles).
     Ignore(a => a.AllProfiles);
     mapper.Entity <BuiltInEmulatorProfile>().
     Ignore(a => a.Type);
     mapper.Entity <CustomEmulatorProfile>().
     Ignore(a => a.Type);
 }
コード例 #2
0
 public static void MapLiteDbEntities(LiteDB.BsonMapper mapper)
 {
     mapper.Entity <FilterPreset>().Id(a => a.Id, false);
     mapper.Entity <FilterSettings>().
     Ignore(a => a.SearchActive).
     Ignore(a => a.IsActive).
     Ignore(a => a.SuppressFilterChanges);
     mapper.Entity <StringFilterItemProperites>().
     Ignore(a => a.IsSet);
     mapper.Entity <EnumFilterItemProperites>().
     Ignore(a => a.IsSet);
     mapper.Entity <FilterItemProperites>().
     Ignore(a => a.IsSet).
     Ignore(a => a.Texts);
 }
コード例 #3
0
        public static void MapLiteDbEntities(LiteDB.BsonMapper mapper)
        {
            mapper.RegisterType <ReleaseDate>
            (
                (date) => date.Serialize(),
                (bson) => ReleaseDate.Deserialize(bson.AsString)
            );

            mapper.Entity <Game>().
            Id(a => a.Id, false).
            Ignore(a => a.Genres).
            Ignore(a => a.Developers).
            Ignore(a => a.Publishers).
            Ignore(a => a.Tags).
            Ignore(a => a.Features).
            Ignore(a => a.Categories).
            Ignore(a => a.Platforms).
            Ignore(a => a.Series).
            Ignore(a => a.AgeRatings).
            Ignore(a => a.Regions).
            Ignore(a => a.Source).
            Ignore(a => a.ReleaseYear).
            Ignore(a => a.UserScoreRating).
            Ignore(a => a.CommunityScoreRating).
            Ignore(a => a.CriticScoreRating).
            Ignore(a => a.UserScoreGroup).
            Ignore(a => a.CommunityScoreGroup).
            Ignore(a => a.CriticScoreGroup).
            Ignore(a => a.LastActivitySegment).
            Ignore(a => a.AddedSegment).
            Ignore(a => a.ModifiedSegment).
            Ignore(a => a.PlaytimeCategory).
            Ignore(a => a.IsCustomGame).
            Ignore(a => a.InstallationStatus);
        }
コード例 #4
0
 public static void MapLiteDbEntities(LiteDB.BsonMapper mapper)
 {
     mapper.Entity <Tag>().Id(a => a.Id, false);
 }
コード例 #5
0
 public static void MapLiteDbEntities(LiteDB.BsonMapper mapper)
 {
     mapper.Entity <ImportExclusionItem>().Id(a => a.Id, false);
 }