Welcome to the CodeSmith Community!

Re: error when creating nhibernate mapping file

Template Frameworks

A description has not yet been added to this group.

error when creating nhibernate mapping file

Answered (Verified) This question is answered

i'm using codesmitth 5.2.0, vs2008

when i try to create a mapping file using a table i get the following message:

System.NullReferenceException: Object reference not set to an instance of an object.
   at NHibernateHelper.EntityManager.GetManyToOne()
   at NHibernateHelper.EntityManager.Init()
   at NHibernateHelper.EntityManager.get_MemberMap()
   at NHibernateHelper.EntityManager.get_Members()
   at _CodeSmith.BusinessObject_cst.__RenderMethod1(TextWriter writer, Control control)
   at CodeSmith.Engine.DelegateControl.Render(TextWriter writer)
   at CodeSmith.Engine.Control.RenderChildren(TextWriter writer)
   at CodeSmith.Engine.Control.Render(TextWriter writer)
   at CodeSmith.Engine.CodeTemplate.Render(TextWriter writer)
   at CodeSmith.Engine.CodeTemplate.RenderToString()
   at CodeSmith.Gui.CodeTemplateGenerator.f(Object A_0, EventArgs A_1)

  • Post Points: 35
Verified Answer
All Replies
  • Hello,

    What SchemaProvider are you using? Can you email your schema into support?

    Thanks

    -Blake Niemyjski

    Blake Niemyjski
    CodeSmith Tools, LLC. Software Development Engineer
    Blog: http://windowscoding.com/blogs/blake/
    .NetTiers team | Visit http://www.nettiers.net

  • i'm affraid i do not know to what you reffer when you say "schema provider"?




    From: blake05 <bounce-blake05@codesmithsupport.com>
    To: hhcosmin@yahoo.com
    Sent: Fri, January 15, 2010 3:09:54 PM
    Subject: Re: [NHibernate Support] error when creating nhibernate mapping file

    Hello,

    What SchemaProvider are you using? Can you email your schema into support?

    Thanks

    -Blake Niemyjski

    From: Cosmin <bounce-HalfHuman@codesmithsupport.com>
    Sent: 1/15/2010 5:23:02 AM

    i'm using codesmitth 5.2.0, vs2008

    when i try to create a mapping file using a table i get the following message:

    System.NullReferenceException: Object reference not set to an instance of an object.
       at NHibernateHelper.EntityManager.GetManyToOne()
       at NHibernateHelper.EntityManager.Init()
       at NHibernateHelper.EntityManager.get_MemberMap()
       at NHibernateHelper.EntityManager.get_Members()
       at _CodeSmith.BusinessObject_cst.__RenderMethod1(TextWriter writer, Control control)
       at CodeSmith.Engine.DelegateControl.Render(TextWriter writer)
       at CodeSmith.Engine.Control.RenderChildren(TextWriter writer)
       at CodeSmith.Engine.Control.Render(TextWriter writer)
       at CodeSmith.Engine.CodeTemplate.Render(TextWriter writer)
       at CodeSmith.Engine.CodeTemplate.RenderToString()
       at CodeSmith.Gui.CodeTemplateGenerator.f(Object A_0, EventArgs A_1)



    --
    View this message online at http://community.codesmithtools.com/forums/p/10490/39486.aspx#39486 or reply to this message
    --

  •  

    Hello,

    Are you using Sql Server, Oracle, MySQL?

    Thanks

    -Blake Niemyjski

     

    Blake Niemyjski
    CodeSmith Tools, LLC. Software Development Engineer
    Blog: http://windowscoding.com/blogs/blake/
    .NetTiers team | Visit http://www.nettiers.net

  • SQL server 2005


    From: blake05 <bounce-blake05@codesmithsupport.com>
    To: hhcosmin@yahoo.com
    Sent: Fri, January 15, 2010 5:44:57 PM
    Subject: Re: [NHibernate Support] error when creating nhibernate mapping file

    Hello,

    Are you using Sql Sever, Oracle, MySQL?

    Thanks

    -Blake Niemyjski

    From: Cosmin <bounce-HalfHuman@codesmithsupport.com>
    Sent: 1/15/2010 8:34:48 AM

    i'm affraid i do not know to what you reffer when you say "schema provider"?




    From: blake05 <bounce-blake05@codesmithsupport.com>
    To: hhcosmin@yahoo.com
    Sent: Fri, January 15, 2010 3:09:54 PM
    Subject: Re: [NHibernate Support] error when creating nhibernate mapping file

    Hello,

    What SchemaProvider are you using? Can you email your schema into support?

    Thanks

    -Blake Niemyjski

    From: Cosmin <bounce-HalfHuman@codesmithsupport.com>
    Sent: 1/15/2010 5:23:02 AM

    i'm using codesmitth 5.2.0, vs2008

    when i try to create a mapping file using a table i get the following message:

    System.NullReferenceException: Object reference not set to an instance of an object.
       at NHibernateHelper.EntityManager.GetManyToOne()
       at NHibernateHelper.EntityManager.Init()
       at NHibernateHelper.EntityManager.get_MemberMap()
       at NHibernateHelper.EntityManager.get_Members()
       at _CodeSmith.BusinessObject_cst.__RenderMethod1(TextWriter writer, Control control)
       at CodeSmith.Engine.DelegateControl.Render(TextWriter writer)
       at CodeSmith.Engine.Control.RenderChildren(TextWriter writer)
       at CodeSmith.Engine.Control.Render(TextWriter writer)
       at CodeSmith.Engine.CodeTemplate.Render(TextWriter writer)
       at CodeSmith.Engine.CodeTemplate.RenderToString()
       at CodeSmith.Gui.CodeTemplateGenerator.f(Object A_0, EventArgs A_1)



    --
    View this message online at http://community.codesmithtools.com/forums/p/10490/39486.aspx#39486 or reply to this message
    --



    --
    View this message online at http://community.codesmithtools.com/forums/p/10490/39491.aspx#39491 or reply to this message
    --

  • Hello,

    Could you please send us a sql script that will recreate your tables that will reproduce this issue.

    Thanks

    -Blake Niemyjski

    Blake Niemyjski
    CodeSmith Tools, LLC. Software Development Engineer
    Blog: http://windowscoding.com/blogs/blake/
    .NetTiers team | Visit http://www.nettiers.net

    Suggested by
  • Hello,

    Are you still seeing this issue? Could you please send us a sql script that will recreate your tables that will reproduce this issue.

    Thanks

    -Blake Niemyjski

    Blake Niemyjski
    CodeSmith Tools, LLC. Software Development Engineer
    Blog: http://windowscoding.com/blogs/blake/
    .NetTiers team | Visit http://www.nettiers.net

Page 1 of 1 (7 items)