Tagged Questions
0
votes
1answer
19 views
Login control using fluent nhibernate
I'm new to fluent nhibernate and I'm stuck with a problem I created a login control in asp.net using tradition methods And I want to use Fluent nhibernate for upgrade my code and I'm stuck with it my ...
0
votes
1answer
17 views
Mapping an Array using Fluent N Hibernate
I am not sure if fluent n hibernate can do this or not, but I cannot figure out how.
I have a table - cases and some properties
ownerId, brokerId, shipperId
I want to map this to my property:
...
0
votes
1answer
21 views
Querying Encrypted Types, IUserType
As a requirement in the app, we have to keep some of the data in database as encrypted strings, so we have used the Encrypted Type, which implements NHibernate's IUserType (courtsey NHibernate ...
0
votes
0answers
23 views
Mapping an Enum with Flags using NHibernate to varchar column
I have this enumeration in c#:
[Flags]
public enum MyEnum
{
One,
Two,
Three,
Four
}
and I'm trying to figure out if I can persist it into the database, via NHibernate using an ...
0
votes
1answer
22 views
Storing an object[] as column in Fluent NHibernate
I have the following (partial) model:
class LogMessage{
string Format;
object[] args;
}
I want to store args[] as a single column in the table, taking advance of the fact that format ...
0
votes
3answers
73 views
Fluent NHibernate HasMany mapping inserts null in foreign key
I have 2 entities:
public class Parent
{
public virtual string Number { get; set; }
public virtual IList<Child> Children { get; set; }
public Parent()
{
Phones = new ...
0
votes
2answers
36 views
NHibernate extend restiction
I need extend Like restriction to support accent insensitive, but I don't know where tinkering. Anyone know how I do this? I can't change collate in all customer databases and I'm using criteria and ...
0
votes
2answers
34 views
Creating a extra layer in fluent nhibernate models
In our database we have a Book database. This has one of its columns as as int called "NumberOfPages"
We have a second table called "BookElements", This has a number of fields and associates with a ...
0
votes
1answer
34 views
Fluent NHibernate map GUID type property NOT Identity
I have a guid property in my entity and i want to map it to guid field in MS SQL.
public class SomeEntity
{
public virtual int Id { get; set; }
public virtual Guid GUID { get; ...
0
votes
1answer
60 views
Adding a child item to nhibernate bag, more queries than necessary
Suppose I have a parent collection with the next mapping:
public class A : Entity<A>
{
private readonly IList<B> _bs = new List<B>();
public virtual string AProp { get; ...
0
votes
0answers
71 views
sqlite in memory database with nhibernate stateless session
I have tried to test my code with the help of sqlite in memory databases, so when trying to use stateless sessions and insert into two tables, it can not find the second table.
[Fact]
public void ...
0
votes
1answer
31 views
After updating the NHibernate I get the LoaderExceptions error?
I have a website worked fine locally after putting it on host-gator it is giving error http://www.akbarca.com/. Hostgator support team say that your application is running in full trust level, in this ...
0
votes
0answers
24 views
Fluent NHibernate: Referencing multiple tables with one variable by discriminating on a column?
I'm not sure how to phrase this. If someone has a better idea, let me know so I can edit the title.
I have a table that holds items. The table is something like this:
ItemList
---------
Id [PK]
...
0
votes
3answers
53 views
Please help me optimizing this Linq statement
Can help me to optimize the following LINQ statement. I'm using NHibernate as ORM. This statement is taking more than a minute to execute. It shouldn't take that much time.
var ...
0
votes
1answer
30 views
How to map an entity to entitycollection dictionary in fluent nhibernate
I have this classes (after removing redundant information from them):
public class Category : BaseEntity
{
public virtual Category ContainingCategory { get; set; }
public virtual ...