Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hi. Goto the Profiling-app and open Program.cs and ensure that you are satisfied with the connection string.");
            Console.ReadKey();
            return;

            var cnInfo = new SisoConnectionInfo(@"sisodb:provider=Sql2008||plain:Data source=.;Initial catalog=SisoDbLab;Integrated security=SSPI;");

            var db = new SisoDatabase(cnInfo);
            db.EnsureNewDatabase();

            ProfilingInserts(db, 1000, 5);

            Console.ReadKey();
        }
Exemplo n.º 2
0
        public AbstractController()
        {
            var cnInfo = new SisoConnectionInfo(ConfigurationManager.AppSettings["nerddinner_connection"]);

            db = new SisoDatabase(cnInfo);
        }
 public void Initialize()
 {
     var connectionInfo = new SisoConnectionInfo(LocalConstants.ConnectionStringName);
     var database = new SisoDatabase(connectionInfo);
     database.EnsureNewDatabase();
 }