Created
September 16, 2017 21:58
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Foundation; | |
using UIKit; | |
using XF.DependencyService.Demo.iOS.Helpers; | |
using XF.DependencyServices.Demo.Helpers; | |
using System.IO; | |
[assembly: Xamarin.Forms.Dependency(typeof(DatabasePath))] | |
namespace XF.DependencyService.Demo.iOS.Helpers { | |
public class DatabasePath : IDbPath { | |
// we must have a default (parameterless) constructor | |
public DatabasePath() {} | |
// iOS Platform Specific code | |
public string GetPlatformDBPath() { | |
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "..", "Library", "LocalDB.db"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment