public static void Delete() { if (s_current?.TenantPath != null) { using (s_rwLock.GetWriteLock()) { string filePath = Path.Combine(CommonHelper.MapPath(s_current.TenantPath), FILENAME); try { File.Delete(filePath); } finally { s_current = null; s_installed = null; } } } }
protected DataProviderFactory(DataSettings settings) { Guard.ArgumentNotNull(() => settings); this.Settings = settings; }
protected DataProviderFactory(DataSettings settings) { Guard.NotNull(settings, nameof(settings)); this.Settings = settings; }
public static void Delete() { using (s_rwLock.GetWriteLock()) { string filePath = Path.Combine(CommonHelper.MapPath("~/App_Data/"), FILENAME); File.Delete(filePath); s_current = null; s_installed = null; } }
public static void Reload() { using (s_rwLock.GetWriteLock()) { s_current = null; s_installed = null; } }
protected DataProviderFactory(DataSettings settings) { Guard.ArgumentNotNull(() => settings); this.Settings = settings; }
public EfDataProviderFactory(DataSettings settings) : base(settings) { }