Hello,
 
I'm moving from LAMP to ASP.NET C# and I'm using fluent nHibernate to 
persist data into a Microsoft Access Database (.mdb).
 
This is all working OK but the Access DB has spaces in the column names and 
I can't get the Model right.
 
When I remove the spaces from Database all works OK.
 
I've tried :
 

public class T_Company

{

[Column("Company No")]

public virtual int CompanyNo { get; set; } // Long

 

}

Which compiles OK but When I run I get bad SQL in the controller :








*public ActionResult Index() { using (ISession session = 
NHibernateHelper.OpenSession()) { var mT_Companys = 
session.Query<T_Company>().ToList();  return View(mT_Companys);}}*
Any help for a newbie would be appreciated!

 

 

 

 

 

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to fluent-nhibernate+unsubscr...@googlegroups.com.
To post to this group, send email to fluent-nhibernate@googlegroups.com.
Visit this group at http://groups.google.com/group/fluent-nhibernate.
For more options, visit https://groups.google.com/d/optout.

Reply via email to