Trace: • imi_crm_how_to_start • nhibernate
Nhibernate
This is an old revision of the document!
Подключение к mysql
SessionFactory = Fluently.Configure() .Database(MySQLConfiguration.Standard .ConnectionString(connectionString)) .Mappings(m => m.FluentMappings.AddFromAssembly(Assembly.GetExecutingAssembly())) .BuildSessionFactory();
using System;
namespace HelloWorld
{
class Hello
{
static void Main()
{
Console.WriteLine("Hello World!");
// Keep the console window open in debug mode.
Console.WriteLine("Press any key to exit.");
Console.ReadKey();
}
}
}
