Ejemplo n.º 1
0
 static Task <int> Main(string[] args)
 {
     return(DatabaseConsoleWrapper
            .Create("Data Source=.;Initial Catalog=Beef.Test;Integrated Security=True", "Beef", "Demo")
            .DatabaseScript("DatabaseWithCdc.xml")
            .RunAsync(args));
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Main startup.
        /// </summary>
        /// <param name="args">The startup arguments.</param>
        /// <returns>The status code whereby zero indicates success.</returns>
        static Task <int> Main(string[] args)
        {
#if (implement_database)
            return(DatabaseConsoleWrapper.Create("Data Source=.;Initial Catalog=Company.AppName;Integrated Security=True", "Company", "AppName", useBeefDbo: true).RunAsync(args));
#endif
#if (implement_entityframework)
            return(DatabaseConsoleWrapper.Create("Data Source=.;Initial Catalog=Company.AppName;Integrated Security=True", "Company", "AppName", useBeefDbo: true).RunAsync(args));
#endif
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Main startup.
        /// </summary>
        /// <param name="args">The startup arguments.</param>
        /// <returns>The status code whereby zero indicates success.</returns>
        static Task <int> Main(string[] args)
        {
            var outDir = $".{System.IO.Path.DirectorySeparatorChar}..";

#if (implement_database)
            return(DatabaseConsoleWrapper.Create("Data Source=.;Initial Catalog=Company.AppName;Integrated Security=True", "Company", "AppName", useBeefDbo: true, outDir: outDir).RunAsync(args));
#endif
#if (implement_entityframework)
            return(DatabaseConsoleWrapper.Create("Data Source=.;Initial Catalog=Company.AppName;Integrated Security=True", "Company", "AppName", useBeefDbo: true, outDir: outDir).RunAsync(args));
#endif
        }
Ejemplo n.º 4
0
        static Task <int> Main(string[] args)
        {
            var outDir = $".{System.IO.Path.DirectorySeparatorChar}..";

            return(DatabaseConsoleWrapper.Create("Data Source=.;Initial Catalog=Beef.Demo;Integrated Security=True", "Beef", "Demo", outDir).RunAsync(args));
        }
Ejemplo n.º 5
0
 /// <summary>
 /// Main startup.
 /// </summary>
 /// <param name="args">The startup arguments.</param>
 /// <returns>The status code whereby zero indicates success.</returns>
 static Task <int> Main(string[] args)
 {
     return(DatabaseConsoleWrapper.Create("Data Source=.;Initial Catalog=My.Hr;Integrated Security=True", "My", "Hr", useBeefDbo: true).RunAsync(args));
 }
Ejemplo n.º 6
0
 static int Main(string[] args)
 {
     return(DatabaseConsoleWrapper.Create("Data Source=.;Initial Catalog=Beef.Demo;Integrated Security=True", "Beef", "Demo").Run(args));
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Main startup.
 /// </summary>
 /// <param name="args">The startup arguments.</param>
 /// <returns>The status code whereby zero indicates success.</returns>
 static int Main(string[] args)
 {
     return(DatabaseConsoleWrapper.Create("Data Source=.;Initial Catalog=Company.AppName;Integrated Security=True", "Company", "AppName").Run(args));
 }