internal static void ValidateConnection() { if (NeoDataBaseConfiguration.LocalDataRepository.IsNullOrEmpty()) { throw new Exception("LocalDataRepository is requerid to use this package, use Neo.DataBaseonfiguration.SetLocalDataBaseRepository(local) to set LocalDataRepository."); } if (!NeoDataBaseConfiguration.LocalDataRepository.EndsWith(@"\")) { NeoDataBaseConfiguration.SetLocalDataBaseRepository(NeoDataBaseConfiguration.LocalDataRepository + @"\"); } }
public static void Generate(string localDataRepository) { NeoDataBaseConfiguration.SetLocalDataBaseRepository(localDataRepository); GenerateDataBase(); }
public static async Task GenerateAsync(string localDataRepository) { NeoDataBaseConfiguration.SetLocalDataBaseRepository(localDataRepository); await GenerateDataBaseAsync(); }