-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathITurboDbContext.cs
More file actions
92 lines (55 loc) · 2.97 KB
/
ITurboDbContext.cs
File metadata and controls
92 lines (55 loc) · 2.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
using System;
using Microsoft.EntityFrameworkCore;
using Turbo.Database.Entities.Catalog;
using Turbo.Database.Entities.Furniture;
using Turbo.Database.Entities.Navigator;
using Turbo.Database.Entities.Players;
using Turbo.Database.Entities.Room;
using Turbo.Database.Entities.Security;
using Turbo.Database.Entities.Tracking;
namespace Turbo.Database.Context;
public interface ITurboDbContext : IDisposable
{
public DbSet<CatalogOfferEntity>? CatalogOffers { get; set; }
public DbSet<CurrencyTypeEntity>? CurrencyTypes { get; set; }
public DbSet<CatalogPageEntity>? CatalogPages { get; set; }
public DbSet<CatalogProductEntity>? CatalogProducts { get; set; }
public DbSet<FurnitureDefinitionEntity>? FurnitureDefinitions { get; set; }
public DbSet<FurnitureEntity>? Furnitures { get; set; }
public DbSet<FurnitureTeleportLinkEntity>? FurnitureTeleportLinks { get; set; }
public DbSet<PlayerBadgeEntity>? PlayerBadges { get; set; }
public DbSet<PlayerCurrencyEntity>? PlayerCurrencies { get; set; }
public DbSet<PlayerEntity>? Players { get; set; }
public DbSet<PlayerRespectEntity>? PlayerRespects { get; set; }
public DbSet<RoomBanEntity>? RoomBans { get; set; }
public DbSet<RoomChatlogEntity>? Chatlogs { get; set; }
public DbSet<RoomEntity>? Rooms { get; set; }
public DbSet<RoomModelEntity>? RoomModels { get; set; }
public DbSet<RoomMuteEntity>? RoomMutes { get; set; }
public DbSet<RoomRightEntity>? RoomRights { get; set; }
public DbSet<RoomEntryLogEntity>? RoomEntryLogs { get; set; }
public DbSet<SecurityTicketEntity>? SecurityTickets { get; set; }
public DbSet<NavigatorTopLevelContextEntity>? NavigatorTopLevelContexts { get; set; }
public DbSet<NavigatorFlatCategoryEntity>? NavigatorFlatCategories { get; set; }
public DbSet<NavigatorEventCategoryEntity>? NavigatorEventCategories { get; set; }
public DbSet<PlayerChatStyleEntity>? PlayerChatStyles { get; set; }
public DbSet<PlayerChatStyleOwnedEntity>? PlayerOwnedChatStyles { get; set; }
public DbSet<PerformanceLogEntity>? PerformanceLogs { get; set; }
public DbSet<PlayerFavoriteRoomsEntity>? PlayerFavouriteRooms { get; set; }
/* public int SaveChanges(bool acceptAllChangesOnSuccess);
public int SaveChanges();
public Task<int> SaveChangesAsync(
bool acceptAllChangesOnSuccess,
CancellationToken cancellationToken = default
);
public Task<int> SaveChangesAsync(CancellationToken cancellationToken = default);
public EntityEntry Add([NotNull] object entity);
public EntityEntry<TEntity> Add<TEntity>([NotNull] TEntity entity)
where TEntity : class;
public EntityEntry Update([NotNull] object entity);
public EntityEntry<TEntity> Update<TEntity>([NotNull] TEntity entity)
where TEntity : class;
public EntityEntry Remove([NotNull] object entity);
public EntityEntry<TEntity> Remove<TEntity>([NotNull] TEntity entity)
where TEntity : class; */
}