Implemetato databese locale con EntityFramework
This commit is contained in:
1 parent
544c9e8237
commit
e7357bd78a
45 files changed
+989
-119
No files matched your search
@@ -0,0 +1,17 @@
|
||||
using Microsoft.Maui.Storage;
|
||||
|
||||
namespace SteUp.Data.LocalDb;
|
||||
|
||||
|
||||
public interface IDbPathProvider
|
||||
{
|
||||
string GetDbPath();
|
||||
}
|
||||
|
||||
public class DbPathProvider : IDbPathProvider
|
||||
{
|
||||
private const string DbName = "steup_db.db3";
|
||||
|
||||
public string GetDbPath() =>
|
||||
Path.Combine(FileSystem.AppDataDirectory, DbName);
|
||||
}
|
||||
Reference in new issue
Block a user