Skip to content

Commit

Permalink
Remove all entity framework code and migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Sep 15, 2022
1 parent 77646fd commit 40a60f7
Show file tree
Hide file tree
Showing 65 changed files with 3 additions and 13,738 deletions.
2 changes: 0 additions & 2 deletions CodeAnalysis/BannedSymbols.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ T:System.IComparable;Don't use non-generic IComparable. Use generic version inst
T:SixLabors.ImageSharp.IDeepCloneable`1;Use osu.Game.Utils.IDeepCloneable<T> instead.
M:osu.Framework.Graphics.Sprites.SpriteText.#ctor;Use OsuSpriteText.
M:osu.Framework.Bindables.IBindableList`1.GetBoundCopy();Fails on iOS. Use manual ctor + BindTo instead. (see https://github.com/mono/mono/issues/19900)
T:Microsoft.EntityFrameworkCore.Internal.EnumerableExtensions;Don't use internal extension methods.
T:Microsoft.EntityFrameworkCore.Internal.TypeExtensions;Don't use internal extension methods.
T:NuGet.Packaging.CollectionExtensions;Don't use internal extension methods.
M:System.Enum.HasFlag(System.Enum);Use osu.Framework.Extensions.EnumExtensions.HasFlagFast<T>() instead.
M:Realms.IRealmCollection`1.SubscribeForNotifications`1(Realms.NotificationCallbackDelegate{``0});Use osu.Game.Database.RealmObjectExtensions.QueryAsyncWithNotifications(IRealmCollection<T>,NotificationCallbackDelegate<T>) instead.
Expand Down
4 changes: 0 additions & 4 deletions osu.Desktop/osu.Desktop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@
<PackageReference Include="Mono.Posix.NETStandard" Version="1.0.0" />
<PackageReference Include="System.IO.Packaging" Version="6.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="5.0.14" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="5.0.14">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="DiscordRichPresence" Version="1.0.175" />
</ItemGroup>
<ItemGroup Label="Resources">
Expand Down
63 changes: 0 additions & 63 deletions osu.Game.Tests/Visual/Navigation/TestEFToRealmMigration.cs

This file was deleted.

2 changes: 1 addition & 1 deletion osu.Game/Beatmaps/BeatmapUpdaterMetadataLookup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ private bool checkLocalCache(BeatmapSetInfo set, BeatmapInfo beatmapInfo)

try
{
using (var db = new SqliteConnection(DatabaseContextFactory.CreateDatabaseConnectionString("online.db", storage)))
using (var db = new SqliteConnection(string.Concat("Data Source=", storage.GetFullPath($@"{"online.db"}", true))))
{
db.Open();

Expand Down
218 changes: 0 additions & 218 deletions osu.Game/Database/DatabaseContextFactory.cs

This file was deleted.

60 changes: 0 additions & 60 deletions osu.Game/Database/DatabaseWriteUsage.cs

This file was deleted.

Loading

0 comments on commit 40a60f7

Please sign in to comment.