[fluent-nhib] Conventions and IClassConventionAcceptance

2012-11-21 Thread Øyvind Valland
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

[fluent-nhib] Conventions not being honored with Fluent NHibernate and NHIbernate 3.2.0GA

2011-10-13 Thread Trinition
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

[fluent-nhib] Conventions for Components that have Foreign Keys

2011-08-11 Thread erothvt
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

[fluent-nhib] Conventions broken in 1.2

2011-05-03 Thread ragamuf
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

[fluent-nhib] Conventions not working with FNH 1.2?

2011-04-15 Thread dwlodarczyk
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

[fluent-nhib] Conventions for KeyProperty

2010-03-22 Thread Yann
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

[fluent-nhib] Conventions and Formula

2009-11-13 Thread brucaliffo
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"))

[fluent-nhib] [Conventions] Specifying a class for relationships

2009-10-13 Thread Remco Ros
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:

[fluent-nhib] Conventions with manual FNH maps

2009-05-19 Thread Filip Zawada
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

[fluent-nhib] Conventions

2009-04-21 Thread sirrocco
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

[fluent-nhib] conventions & overrides

2009-04-16 Thread Berryl Hesh
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 -

[fluent-nhib] Conventions and Oracle sequences

2009-03-20 Thread nsorochan
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

[fluent-nhib] Conventions overhaul

2009-03-04 Thread James Gregory
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

[fluent-nhib] Conventions GetPrimaryKeyName

2008-12-08 Thread Chris Marisic
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

[fluent-nhib] Conventions

2008-09-12 Thread Andrew Stewart
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