Skip to content

SQLite database delete not supported on Windows 10 UAP  #2183

@rowanmiller

Description

@rowanmiller

context.Database.AsRelational().Delete() results in an exception on UAP because it makes use of APIs not supported on that platform

System.InvalidOperationException was unhandled by user code
HResult=-2146233079
Message=The API 'System.IO.File.Delete(System.String)' cannot be used on the current platform. See http://go.microsoft.com/fwlink/?LinkId=248273 for more information.
Source=mscorlib
StackTrace:
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.Data.Entity.Sqlite.SqliteDataStoreCreator.Delete()
at Microsoft.Data.Entity.Relational.RelationalDataStoreCreator.EnsureDeleted(IModel model)
at Microsoft.Data.Entity.Infrastructure.Database.EnsureDeleted()
at UnicornPacker.App.OnLaunched(LaunchActivatedEventArgs e)
InnerException:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions