Questions tagged [fluent-nhibernate-test]
4 questions
7
votes
1 answer
Unable to cast 'NHibernate.Collection.Generic.PersistentGenericSet`1 to System.Collections.Generic.IList`1
I have a domain class:
public class Agencia : IEntity
{
public virtual int Id { get; set; }
public virtual string Nome { get; set; }
public virtual string Identificacao { get; set; }
public virtual IList Gerentes { get;…

ridermansb
- 10,779
- 24
- 115
- 226
1
vote
2 answers
Fluent NHibernate mapping several models in one table
I currently use a table to store two different types of entities, and distinguish them using a column in the table intTypeId
Entity Company:
public CompanyMap
{
Table("tblTable");
Id(x => x.Id, "intId");
…

albusshin
- 3,930
- 3
- 29
- 57
0
votes
1 answer
UnitTest FluentNhibernate using PostgreSQLConfiguration
When setting up our new architecture I followed a guide which used NHibernate with MsSql2008 configuration.
We are not using MsSql2008, instead using Postgresql. The configuration for this all works great and it saves to the database etc.
I am…

Shane van Wyk
- 1,870
- 1
- 26
- 62
0
votes
1 answer
Map Two Tables With Third Table Fluent Nhibernate
I am working on Nhibernate and I have two classes name Customer and CusotmerRole with their mapping(CustomerMap and CustomerRoleMap). Now I want to map these two tables with the Third Table we have in Database named As Customer_CustomerRole_Mapping.…

Nikhil Vasdev
- 183
- 1
- 3
- 14