fluent-nhibernate Questions
3
Solved
I have a data access class with an Enum called Salutation:
public enum Salutation
{
Unknown = 0,
Dame = 1,
etc
Mr = 5,
etc
}
I am peristing the class with NHibernate, and up until this m...
Gahl asked 16/7, 2010 at 10:5
2
Solved
I have two classes Order and Items
I want a method like this
class Order
{
public virtual IList<Item> GetItems(Order order)
{
//get items for that order.
}
}
class Item
{
public virtua...
Incipient asked 2/2, 2012 at 6:31
3
Solved
using fluent nhibernate, and automappings (nhibernate creates my db schema), how can i get nhibernate to create a nvarchar(max) column in the database based on the following class
public class Vir...
Impartible asked 20/8, 2010 at 15:19
3
Solved
I have a class that is mapped in fluent nhibernate but I want one of the classes properties to be ignored by the mapping.
With class and mapping below I get this error:
The following types may no...
Wace asked 25/5, 2009 at 18:3
2
I am trying to figure out a way to map one to one relationship in nhibernate when referencing column is not a primary key column on second table.
For example consider
Person Table
PersonId (pk...
Bonham asked 19/9, 2014 at 18:45
6
Solved
Hi I use Fluent NHibernate and I am little confusing with Lazy Loading.
I queried object in database
modified object properties
update database with this object
Here is code:
public class Cred...
Spoliate asked 28/9, 2011 at 13:49
8
How do you add NOLOCK when using nhibernate? (criteria query)
Cruz asked 19/8, 2009 at 21:33
7
Solved
Out of the blue, i am getting this error when doing a number of updates using nhibernate.
Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [MyDomainObjec...
Simsar asked 9/12, 2010 at 23:54
1
Solved
I faced the below error fluentNhibernate in .net 6 project but the same code is working in framework 4.8.
Error: could not create the driver from nhibernate.driver.sqlclientdriver, nhibernate, vers...
Stairwell asked 30/12, 2021 at 17:32
7
Solved
I'm getting this weird ArgumentOutOfRangeException whenever I use the
PersitenceSpecification class for verifying an entity that has a
reference to a value object.
public class CatalogItem : Doma...
Trussell asked 1/3, 2009 at 19:7
2
Solved
I've got a business application that I'm responsible for maintaining and this intermittent error keeps popping up regarding creating new comments in it. I finally got an exact string that causes it...
Housefly asked 3/12, 2012 at 20:4
4
Solved
I'm getting a sporadic error that is difficult to reproduce. My first guess is that somehow I have a leaking nhibernate session, however when I ran the nhibernate profiler, I didn't see much out of...
Vial asked 31/1, 2011 at 19:31
3
Solved
This SO question talks about "Rehydrating fluent nhibernate configured DateTime as Kind Utc rather than Unspecified".
One of the later answers in that question has this:
Map(x => x.EntryDate)....
Bini asked 9/3, 2015 at 4:44
3
I am using Fluent NHibernate and am trying to store an image. Small images work, but larger images do not, and I receive this error when saving to the database (SQL Server):
Exception: Error dehyd...
Frayda asked 30/8, 2012 at 19:43
3
Solved
I have to write a query in Fluent NHibernate for
Select * from Users where UserName = 'Abcd' AND Password = '123456'
How to create above query with session.CreateCriteria
Patterman asked 12/7, 2011 at 4:10
3
Solved
A bit of domain knowledge
I'm writing a POS (Point Of Sales) software which allows to pay goods or to refund them.
When paying or refunding, one need to specify which money transfer mean to use: c...
Rotherham asked 20/12, 2019 at 7:54
3
Solved
I'm encountering an issue when verifying the mappings on a very simple class.
System.ApplicationException : For property 'Created' expected same
element, but got different element with the same...
Frederiksen asked 9/8, 2011 at 6:16
3
Solved
Using FNH, i am trying to retrieve categories, using the following:
_session.QueryOver<Data.Model.Category>()
.Where(c => tourCreateRequest.Categories.Contains(c.CategoryId))
.List()
....
Lynelllynelle asked 7/4, 2013 at 13:14
7
I'm sure there is something simple I've not done but I'm trying to get Fluent NHibernate to work with Sqlite on my machine.
I used NuGet to download fluent nhibernate and added the following entit...
Loftus asked 14/4, 2011 at 15:4
6
getting {"could not execute batch command.[SQL: SQL not available]"} error from NHibernate
I took a look at other related posts but couldn't find any solution.
Sometimes on sesstion.Flush() I get the following error:
{"could not execute batch command.[SQL: SQL not available]"}
and the ...
Samphire asked 28/2, 2012 at 13:29
4
Solved
I'm looking for a FluentNH (Fluent NHibernate) convention or configuration that ignores all properties that have no setter:
It would still map these:
public class foo{
public virtual int bar {ge...
Emmyemmye asked 23/8, 2010 at 11:19
2
I'm trying to use Fluent NHibernate to migrate a database that needs some of the database 'massaged'. The source database is a MS Access database and the current table I'm stuck on is one with an O...
Cristie asked 28/10, 2015 at 13:53
4
Solved
I know how to log the SQL to log4net/NLog/trace window at runtime with the show_sql configuration option.
What I'm looking for is a way to give a Query<T>() to NHibernate retrieve the genera...
Jarad asked 22/5, 2012 at 14:49
2
I have tried using the Reveal property in Fluent but I can't get it to compile with a collection. I want one of my collections in an entity to be protected and not accessible anywhere except in the...
Whey asked 15/7, 2009 at 4:0
2
Solved
I have a class called ReportRequest as:
public class ReportRequest
{
Int32 templateId;
List<Int32> entityIds;
public virtual Int32? Id
{
get;
set;
}
public virtual Int32 TemplateId...
Monomial asked 28/10, 2009 at 16:57
1 Next >
© 2022 - 2024 — McMap. All rights reserved.