Esempio n. 1
0
 static public async Task <Result> CreateDatabaseAsync(string connectionString)
 {
     return(await Task.Run <Result>(() =>
     {
         try
         {
             var provider = new SqlServerProvider(connectionString);
             provider.CreateDatabase();
             return Result.Ok();
         }
         catch (Exception ex)
         {
             return Result.Error(ex);
         }
     }));
 }