NSoft.NFramework.Data.NHibernateEx.ForTesting.UnitOfWorkTestContextDbStrategy.CreateDatabaseSchema C# (CSharp) Method

CreateDatabaseSchema() protected method

create database schema for current session
protected CreateDatabaseSchema ( ISession currentSession ) : void
currentSession ISession
return void
        protected virtual void CreateDatabaseSchema(ISession currentSession) {
            new SchemaExport(TestContext.NHConfiguration).Execute(false, true, false);

            //var schemaExport = new SchemaExport(TestContext.NHConfiguration);
            //schemaExport.Drop(false, true);
            //schemaExport.Create(false, true);
        }