Esempio n. 1
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);
        }
Esempio n. 2
0
 public GamesCollection(GameDatabase database, LiteDB.BsonMapper mapper) : base((Game game) =>
 {
     game.IsInstalling   = false;
     game.IsUninstalling = false;
     game.IsLaunching    = false;
     game.IsRunning      = false;
 }, mapper, type: GameDatabaseCollection.Games)
 {
     db = database;
 }
Esempio n. 3
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);
 }
 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);
 }
Esempio n. 5
0
 public static void MapLiteDbEntities(LiteDB.BsonMapper mapper)
 {
     mapper.Entity <Tag>().Id(a => a.Id, false);
 }
Esempio n. 6
0
 public TagsCollection(GameDatabase database, LiteDB.BsonMapper mapper) : base(mapper, type: GameDatabaseCollection.Tags)
 {
     db = database;
 }
Esempio n. 7
0
 public FeaturesCollection(GameDatabase database, LiteDB.BsonMapper mapper) : base(mapper, type: GameDatabaseCollection.Features)
 {
     db = database;
 }
Esempio n. 8
0
 public PlatformsCollection(GameDatabase database, LiteDB.BsonMapper mapper) : base(mapper, type: GameDatabaseCollection.Platforms)
 {
     db = database;
 }
 public CompaniesCollection(GameDatabase database, LiteDB.BsonMapper mapper) : base(mapper, type: GameDatabaseCollection.Companies)
 {
     db = database;
 }
Esempio n. 10
0
 public static void MapLiteDbEntities(LiteDB.BsonMapper mapper)
 {
     mapper.Entity <ImportExclusionItem>().Id(a => a.Id, false);
 }
Esempio n. 11
0
 public ImportExclusionsCollection(GameDatabase database, LiteDB.BsonMapper mapper) : base(mapper, type: GameDatabaseCollection.ImportExclusions)
 {
 }
 public FilterPresetsCollection(GameDatabase database, LiteDB.BsonMapper mapper) : base(mapper, type: GameDatabaseCollection.FilterPresets)
 {
 }
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 /// <summary>   Constructor. </summary>
 ///
 /// <remarks>   Mustafa SAÇLI, 9.05.2019. </remarks>
 ///
 /// <param name="connectionString"> The connection string. </param>
 /// <param name="mapper">           (Optional) The mapper. </param>
 /// <param name="log">              (Optional) The log. </param>
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 public ErrorLogLiteDbRepository(string connectionString, LiteDB.BsonMapper mapper = null, LiteDB.Logger log = null)
     : base(connectionString, mapper, log)
 {
 }
 public GamesSourcesCollection(GameDatabase database, LiteDB.BsonMapper mapper) : base(mapper, type: GameDatabaseCollection.Sources)
 {
     db = database;
 }
Esempio n. 15
0
 public EmulatorsCollection(GameDatabase database, LiteDB.BsonMapper mapper) : base(mapper, type: GameDatabaseCollection.Emulators)
 {
     db = database;
 }
Esempio n. 16
0
 public AppSoftwareCollection(GameDatabase database, LiteDB.BsonMapper mapper) : base(mapper, type: GameDatabaseCollection.AppSoftware)
 {
     db = database;
 }