Exemplo n.º 1
0
        static void Main()
        {
            //esProviderFactory.Factory = new EntitySpaces.LoaderMT.esDataProviderFactory();
            esProviderFactory.Factory = new EntitySpaces.Loader.esDataProviderFactory();

            //ProfilerListener.BeginProfiling("EntitySpaces.SqlClientProvider",
            //    ProfilerListener.Channels.Channel_1);
            ProfilerListener.BeginProfiling("EntitySpaces.SQLiteProvider",
                                            ProfilerListener.Channels.Channel_2);

            esEntity.AddedByEventHandler +=
                new ModifiedByEventHandler(esEntity_AddedByEventHandler);

            esEntity.ModifiedByEventHandler +=
                new ModifiedByEventHandler(esEntity_ModifiedByHandler);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
Exemplo n.º 2
0
 private void btnEndProfiling_Click(object sender, EventArgs e)
 {
     ProfilerListener.EndProfiling("EntitySpaces.SqlClientProvider");
 }
Exemplo n.º 3
0
 private void btnBeginProfiling_Click(object sender, EventArgs e)
 {
     ProfilerListener.BeginProfiling("EntitySpaces.SqlClientProvider",
                                     ProfilerListener.Channels.Channel_1);
 }