I have 3 table in a sample. i am going to join 2 table but i have problem the following is my code : <?xml version=\"1.0\"?>
I have a mapping issue with the table-per-class hierarchy in Fluent/NHibernate.When retrieving the records from the database, I keep getting an error (the Wrong type exception)
I need to store my enums in the database as varchar instead of nvarchar, so I am using the \"AnsiString\" mapping as follows:
I\'m looking for an example of how I would/should use the SqlUpdate, SqlDelete, and SqlInsert parts of Fluent NHibernate in my mappings.
I am dealing with a legacy database, and we have a field which doesn\'t make sense anymore, but I would rather not change the DB schema.
I am using Nhibernate 3.2, along with a build of FluentNhibernate compatible with NH 3.2 and I have come to map a legacy part of my s开发者_Go百科ystem. I believe it is possible to do what I require,
The follow exception is always be throwed: could not initialize a collection: [FatorM.Sieq.Model.Entities.Culto.Ofertas#4][SQL: SELECT ofertas0_.Culto_Id as Culto3_1_, ofertas0_.Id as Id1_, ofertas0
I have the following code which uses th开发者_开发知识库e repository pattern, backed by a fluent nhibernate automapping to a MySQL DB.
I have an object declared like this public class MyObject { public virtual long MyId { get; set; } public virtual MyChild Child { get; set; }
I changed my mapping test to use the overload .VerifyTheMappings(TEntity first), and suddenly my test just passes. I haven\'t used that overload before, and since I\'m not really sure how it works, I\