Hello,
I have problems applying a convention conditionally. A full description of
the issue is on SO
(http://stackoverflow.com/questions/13401081/fluent-nhibernate-table-naming-convention-not-working).
The following convention worked just fine with Fluent NHibernate 1.2.1 but
has stopped worki
I have several conventions that I had been using with NHibernate 3.1
and corresponding Fluent NHibernate, but they are no longer working
with NHibernate 3.2. I've tried both using assembly binding
redirection and the latest Fluent NHibernate (1.3.0.722).
For example, I have the following conventi
In our current project we are using Fluent NHibernate with AutoMapping
in which we have certain conventions that apply naming standards to
Column Names that are foreign keys and also to the index names and
foreign key constraint names. All this worked fine until we added a
component that had a fore
I am currently unable to use the new version due to an issue with the
conventions which appear to be broken. Any help will be appreciated.
Thanks
http://code.google.com/p/fluent-nhibernate/issues/detail?id=400
http://groups.google.com/group/fluent-nhibernate/browse_thread/thread/f255ebe639605b
After upgrade to newest version Conventions stop working?
For example i have:
public class TableNamingConvention : IClassConvention
{
public void Accept(IAcceptanceCriteria
criteria)
{
criteria.Expect(x => x.TableName, Is.Not.Set);
}
public voi
Hi,
I'm transforming the mapping of all my properties to write propery
name like "AgencyId" to "agency_id".
But when i use CompositeId with KeyProperty, my IPropertyConvention
doesn't get called.
Maybe this is normal, so i've try to use the IKeyPropertyConvention
but I don't see a way to set the c
I'm writing a IConvention implementation that changes table names and
column names but in my mappings I also have fomulas which I need to
replace but PropertyInstance doesn't allow me to replace a formula
with Formula() because the setter is protected by
if (!this.mapping.IsSpecified("Formula"))
Hello,
I'm writing a convention for collections (ICollectionConventions) but
I am unable to specify a custom class type:
In HBM mapping I can specify a custom class for elements:
Ie:
class Order : IOrder { }
class Customer
{
ICollection Orders { get; }
}
and in the mapping for customer:
Does conventions work with manual FNH maps?
I use a convention that sets the length of every string property that
has the name "Description".
In hbms I see that it gets applied. I use model.WriteMappingsTo
(DBScriptsPath); to emit hbms.
The NH Configuration object doesn't have corresponding attri
Hi, I had 3 simple conventions now (after updating to the latest
version) I have no clue how to set them :
Conventions.GetForeignKeyName = prop => prop.Name + "Id";
Conventions.GetForeignKeyNameOfParent = prop => prop.Name +
"Id";
Conventions.GetPrimaryKeyNameFromType = pro
Please forgive me if the answer to this should be obvious from the
docs.
I'm using AutoMapping w/ conventions, and I have an override class.
The case I'm asking about happens to be re: StringLength but I'm
hoping the idea should be applicable to any convention.
Convention class
-
I am using automapping and it appears to be working.
However, I want to tell the automapper that each id is sequence in
oracle.
If you can do this, will it then use this sequence when inserting?
--~--~-~--~~~---~--~~
You received this message because you are subsc
Guys,
This email is a heads up, with an opportunity to provide feedback before I
commit these changes to trunk. I want to make it clear that I'm not bashing
the work of the developers before myself who wrote the original conventions
code. I mean no disrespect, it's just not my idea of where it sho
Unless I am misunderstanding something and using this incorrectly the
functionality of this method seems to be off
var persistenceModel =
AutoPersistenceModel.MapEntitiesFromAssemblyOf()
.Where(t => t.Namespace ==
"Domain.Business.Auto")
.WithConvention(convention
Hi
I'm just looking over our convention logic. What I'd like to be able to do
is specify that certain things happen in all my maps, at the moment I have
the following working:
AutoPersistenceModel
.MapEntitiesFromAssemblyOf()
.Where( t => (t.Namespace.Contains("NamespaceName")
.ForTypesT
15 matches
Mail list logo