Re: [fluent-nhib] tag again

2010-03-05 Thread James Gregory
Hey Gabriel, What purpose does UserInfo serve? Is it a projection/DTO of an existing entity? I'm not sure if this is the other post you were referring to, but my answer

Re: [fluent-nhib] Disallowed property names

2010-03-04 Thread James Gregory
That's an NHibernate thing. You can do one of several things... 1. Escape your column names using backticks (`), so End becomes `End`. This instructs NH to escape that column using the database specific escaping mechanism 2. Auto-escape your column names; there's a configuration setti

Re: [fluent-nhib] Re: Join where clause doesn't appear to match?

2010-02-21 Thread James Gregory
Join is exclusively for when you have an entity that is composed of multiple tables, nothing else; it's not a true relationship. References and HasMany should be used for just about everything, and definitely anything that can be considered an entity in it's own right. On Sun, Feb 21, 2010 at 12:1

Re: [fluent-nhib] why PersistenceModel.IsSubclassMap doesn't accept generics?

2010-02-20 Thread James Gregory
It shouldn't matter that your mappings are generic, I guess that's an oversight on our part. Do all the tests pass if you remove that check? On Sat, Feb 20, 2010 at 5:26 PM, Mira.D wrote: > The functions IsClassMap, IsSubclassMap and IsFilterDefinition in > the PersistenceModel actually return

Re: [fluent-nhib] Re: New support site

2010-02-19 Thread James Gregory
;> Overflow, no matter how many times I preview my posts. >> >> I looked for the "edit" button that someone else mentioned, but could >> not find it. >> >> -Tom Bushell >> >> On Feb 18, 11:18 am, James Gregory wrote: >> > Hello ever

Re: [fluent-nhib] Version of NHibernate

2010-02-19 Thread James Gregory
We track the latest GA release of NHibernate; we upgraded to 2.1.2.4000 from 2.1.1.4000 on the 3rd of December . On Thu, Feb 18, 2010 at 8:26 AM, Peter Forstmeier < peter.forstme...@googlemail.com> wrote

Re: [fluent-nhib] Re: Strange behavior with auto-mappings when built with MSBuild

2010-02-18 Thread James Gregory
=> > { > s.IsComponentType = > type => > > type.Namespace.EndsWith("Domain.Components"); > s.GetComponentColumnPrefix = > property => >

Re: [fluent-nhib] Re: New support site

2010-02-18 Thread James Gregory
re. That was a plus. While editing > my post i though than the "edit" button might better be labeled as > Save(?). > > I Like it. > > On Feb 18, 10:18 am, James Gregory wrote: > > Hello everyone, > > > > *tl;dr new support site, go to > > **support.fl

[fluent-nhib] New support site

2010-02-18 Thread James Gregory
Hello everyone, *tl;dr new support site, go to **support.fluentnhibernate.org* We are taking steps to improve Fluent NHibernate support. I'm always impressed by the level of support our contributors (and users) provide on this mailing list, especially when con

Re: [fluent-nhib] Filters?

2010-02-18 Thread James Gregory
Not that I'm aware of. This was a user contributed feature and no docs have been written for it (but the author might be lurking here, if you're lucky). On Thu, Feb 18, 2010 at 2:12 PM, Sal wrote: > Hi Guys, > > I noticed some Filter type objects when clicking around through > intellisense. Is t

Re: [fluent-nhib] Wiki? what's up with that

2010-02-18 Thread James Gregory
Should be fixed now. Thanks for the heads-up On Thu, Feb 18, 2010 at 2:08 PM, Hudson Akridge wrote: > Here's what it looks like for me. > > > On Thu, Feb 18, 2010 at 8:05 AM, Kurt wrote: > >> np >> >> >> On Thu, Feb 18, 2010 at 7:56 AM, Hudson Akridge > > wrote: >> >>> I believe this just happen

Re: [fluent-nhib] Wiki? what's up with that

2010-02-18 Thread James Gregory
What's up with it? Looks fine to me. On Thu, Feb 18, 2010 at 1:56 PM, Hudson Akridge wrote: > I believe this just happened. James might be migrating some stuff. I know > the main FNH.org site was down yesterday for a bit as well. Thanks for the > heads up! > > > On Thu, Feb 18, 2010 at 7:51 AM, Y

Re: [fluent-nhib] Re: Strange behavior with auto-mappings when built with MSBuild

2010-02-18 Thread James Gregory
I can't see how using a different build tool would affect FNH, unless your MSBuild script is using out of date references. FNH is not compilation sensitive. On Wed, Feb 17, 2010 at 8:23 PM, rauh.ryan wrote: > Sorry, I didn't make my question clear above... oops > > Has anyone else ran into this

Re: [fluent-nhib] Map read-only property with different field name

2010-02-18 Thread James Gregory
Why not return an IEnumerable instead of a copy of the list? That way the signature rather than the name of the property indicates the kind of actions they can take on it. On Thu, Feb 18, 2010 at 8:52 AM, adrianhara wrote: > Hi guys, > > Is it possible to map this? > > class Foo > { >private

Re: [fluent-nhib] HasOne Where?

2010-02-17 Thread James Gregory
You're probably looking for References instead of HasOne. On Wed, Feb 17, 2010 at 2:37 PM, Sal wrote: > Why is there no Where() method on the HasOne mappings? I believe this > can be done with xml mappings. > > Am I just missing it? > > -- > You received this message because you are subscribed t

Re: [fluent-nhib] Re: Auto-discover assemblies containing ClassMap classes?

2010-02-17 Thread James Gregory
icKeyToken=8aa435e3cb308880' > > is missing a parameterless constructor. > > > > If the FluentNHibernate is in the lot, it reacts badly? > > > > N. > > > > On Feb 17, 2:48 pm, James Gregory wrote: > > > > > We don't support that yet, but it

Re: [fluent-nhib] Auto-discover assemblies containing ClassMap classes?

2010-02-17 Thread James Gregory
We don't support that yet, but it is in the pipeline. You'll have to roll something yourself, but it shouldn't be too difficult. Something like this should work: http://pastie.org/829499 On Wed, Feb 17, 2010 at 7:12 PM, NickNH wrote: > Hi, > > is there a way to auto-discover ClassMap classes i

Re: [fluent-nhib] Excepting caused by multiple requests after application start

2010-02-16 Thread James Gregory
Where and how are you creating your session factory? On Tue, Feb 16, 2010 at 3:06 PM, Schlaefisch wrote: > Hi, > > we're using fluent NHibernate within a SharePoint 2007 WebPart. > Everything works fine except for one problem: > > If we reset the web server and 2 (or more) users try to browse the

Re: [fluent-nhib] Invalid Cast when converting example FirstProject to VB

2010-02-16 Thread James Gregory
You've got your collection properties as the concrete List(Of T), instead of the interface IList(Of T). Try changing that and see what happens; NHibernate dynamically subclasses IList to provide it's own implementation for lazy loading (the PersistentGenericBag you're getting in your exception), an

Re: [fluent-nhib] Re: Discriminate subclass on column

2010-02-16 Thread James Gregory
ap(x => x.IsBilledOk) >> .Column("response_status"); >> Map(x => x.Platform) >> .Column("validation_platform"); >> Map(x => x.PlatformVersion) >> .Column("validation_version");

Re: [fluent-nhib] Re: Discriminate subclass on column

2010-02-16 Thread James Gregory
These are my favourite support questions. Keep it up :) On Tue, Feb 16, 2010 at 12:32 PM, Mikael Henriksson wrote: > Never mind, I totally reconsidered that. > > On Tue, Feb 16, 2010 at 12:42 PM, Mikael Henriksson > wrote: > >> Hey guys, >> >> I need to do a pretty custom subclassoncolumn where

Re: [fluent-nhib] Re: ComponentMap and ColumnPrefix

2010-02-15 Thread James Gregory
> > Is this the intended results? I hope that's sarcasm... :) No, that most definitely isn't the expected results. Can you put together a small example project that illustrates this? There's obviously a case that our tests aren't covering. On Mon, Feb 15, 2010 at 4:39 PM, Chuck wrote: > Sorry

Re: [fluent-nhib] Re: entity-type

2010-02-15 Thread James Gregory
It should be in the official repo now (or as of a day or so ago, actually). On Mon, Feb 15, 2010 at 1:57 PM, Jan Limpens wrote: > Very cool! Thanks! > > > On Sat, Feb 13, 2010 at 9:53 AM, Paul Batum wrote: > >> I've extended the entity-name support a little further - you should be >> able to us

Re: [fluent-nhib] Re: Unable to obtain same mapping from a hbm

2010-02-12 Thread James Gregory
try: Join("Persone", j => { j.KeyColumn("ID_PERSONA"); j.Map(x => x.CodiPersona, "CODI_PERSONA"); j.Map(x => x.Cognome, "COGNOME"); // continue with the other columns }); On Fri, Feb 12, 2010 at 12:57 PM, Del Brocco Andrea wrote: >

Re: [fluent-nhib] Re: How to map list of strings

2010-02-11 Thread James Gregory
> On Fri, Feb 12, 2010 at 8:37 AM, James Gregory wrote: > >> I've just pushed a change to master that _hopefully_ should enable >> automapping of collections of simple types. If you get the chance, take a >> look; you should be able to remove your overrides and just have

Re: [fluent-nhib] Re: How to map list of strings

2010-02-11 Thread James Gregory
I've just pushed a change to master that _hopefully_ should enable automapping of collections of simple types. If you get the chance, take a look; you should be able to remove your overrides and just have it work. On Fri, Jan 8, 2010 at 11:30 PM, tbushell wrote: > > > On Jan 6, 11:23 am, Hudson

Re: [fluent-nhib] union-subclass

2010-02-11 Thread James Gregory
No, it isn't. :( On Thu, Feb 11, 2010 at 4:33 PM, SuperCiccio wrote: > Is "table per concrete class" strategy (i.e. abstract class + union- > subclass) supported by current FNH? > > -- > You received this message because you are subscribed to the Google Groups > "Fluent NHibernate" group. > To po

Re: [fluent-nhib] Re: Updated to trunk, lost Not.AutoImport();

2010-02-09 Thread James Gregory
I knew it was still in there somewhere... Glad you found it before I got chance to look. On Tue, Feb 9, 2010 at 6:56 PM, Stefan Moser wrote: > I'll answer my own question here: > > HibernateMapping.Not.AutoImport(); > > Cheers, > Stefan > > > On Mon, Feb 8, 2010 at 5:35 PM, Stefan Moser wrote: >

Re: [fluent-nhib] automapping key words

2010-02-07 Thread James Gregory
Convention should work. You could also look into hbm2ddl.keywords setting . On Sun, Feb 7, 2010 at 11:53 AM, Paul Batum wrote: > For a while we had autoquoting for column names on which would have > resolved this, but it w

Re: [fluent-nhib] Cannot insert entity with children

2010-02-04 Thread James Gregory
Firstly, don't map the foreign-key id as a property on Child; that way pain lies. Secondly, you need to set the Parent property yourself before save. The recommended practice for this is to create an AddChild method on your Parent class that adds the Child into the collection and at the same time s

Re: [fluent-nhib] Component Convention - how to specify column

2010-02-03 Thread James Gregory
The best way is the way that you've done it, with the GetComponentColumnPrefix; however, you've obviously highlighted a flaw in our design that needs to be fixed. On Wed, Feb 3, 2010 at 5:04 PM, Martin From wrote: > I am try to write a Component Convention soo that every Property in a > componen

Re: [fluent-nhib] automapping tag

2010-02-03 Thread James Gregory
How do you see that working? On Wed, Feb 3, 2010 at 6:42 PM, RT wrote: > I was wondering whether there is support for automapping the import > tag. I saw a couple of posts here for fluent mapping but not > automapping. > > Thank you. > > -- > You received this message because you are subscribed

Re: [fluent-nhib] Re: automapping version column

2010-02-03 Thread James Gregory
ed. > I figured since Version was a SQL server keyword, it was ignored. That > is the reason I changed the property to RowVersion. is there anything > else I need to do besides using the property name Version? > > Thanks. > > > > > > On Feb 2, 6:55 pm, James Gre

Re: [fluent-nhib] IReferenceConventions on specific properties (many-to-one relationships)?

2010-02-02 Thread James Gregory
You should have a look at conditional applying of conventions on the wiki, and specifically the acceptance criteria API; though honestly, I think you'll still end

Re: [fluent-nhib] automapping version column

2010-02-02 Thread James Gregory
Your version needs to be called Version or Timestamp for the automapping to recognise it. Otherwise, use an overrideto specify the version mapping manually. On Tue, Feb 2, 2010 at 10:39 PM, RT wrote: > Current code: > >public class MyV

Re: [fluent-nhib] Re: How to specify property type?

2010-02-02 Thread James Gregory
What do you mean it's never called? *You* have to call it. On Tue, Feb 2, 2010 at 11:21 AM, SuperCiccio wrote: > Already tryed, without success! > > Debugging the code (rev. 616) I found that > > public PropertyPart CustomType(string type) > > in FluentNHibernate.Mapping.PropertyPart gets never c

Re: [fluent-nhib] How to specify property type?

2010-02-02 Thread James Gregory
Map(x => x.IsActive) will use the type of your property, you don't need to specify it if they match. If you want to use a different type, use CustomType: Map(x => x.IsActive).CustomType(); or Map(x => x.IsActive).CustomType(typeof(Int16)); or Map(x => x.IsActive).CustomType("Int16"); On Tue

Re: [fluent-nhib] Re: Build for NHibernate 2.1.2.GA

2010-02-02 Thread James Gregory
gnecker > blog: http://blog.drlongnecker.com > twitter: dlongnecker > > > On Mon, Feb 1, 2010 at 7:25 PM, Cameron Taggart > wrote: > >> A Fluent NHibernate binary compatible with NHibernate 2.1.2 would >> really be helpful. >> >> please, >> Cameron >&g

[fluent-nhib] Validation feature

2010-02-01 Thread James Gregory
Hey everyone, I've just committed a change to the master branch that might be of interest. I've added a validation phase to FNH that aims to reduce the obtuse XSD validation errors you can receive when you create invalid mappings. Currently the only case that's supported is missing ids, but that a

Re: [fluent-nhib] Fluent Configuration BuildConfiguration vs BuildSessionFactory

2010-01-28 Thread James Gregory
Nobody's making you use ExposeConfiguration, and BuildConfiguration is there so you can do things like you've shown. On Thu, Jan 28, 2010 at 9:17 PM, Weston Binford wrote: > About a year ago, there was a discussion ( http://bit.ly/b8A4WN ) here > about making the NHibernate Configuration availab

Re: [fluent-nhib] Re: Fluent NHibernate quotes all fields?

2010-01-28 Thread James Gregory
ructure.. so I have nothing on which I can really to know if > the user wants quoting or not. > > On Jan 23, 9:10 pm, Doron Yaacoby wrote: > > Sure thing. Thanks for the tip. > > > > On Jan 23, 10:08 pm, James Gregory wrote: > > > > > > > > > L

Re: [fluent-nhib] Re: Where are testing extensions (Should...) now?

2010-01-27 Thread James Gregory
> On Jan 27, 2:40 pm, epitka wrote: > > Is FluentNHibernate.Testing separate dll? R# is not finding anything > > in FluentNHibernate dll. Object browser reveals only two classes > > PersistenceSpecification and SingleConnection... > > > > On Jan 27, 2:35 pm, James Gregor

Re: [fluent-nhib] Where are testing extensions (Should...) now?

2010-01-27 Thread James Gregory
They're not gone, probably moved though. Aren't you using R#? That'd tell you where they are. They're in a class called SpecificationExtensions in FluentNHibernate.Testing. On Wed, Jan 27, 2010 at 8:32 PM, epitka wrote: > I am porting project using older version of FNH to a new one, but all > e

Re: [fluent-nhib] Mapping overrides for joined subclasses get executed twice

2010-01-27 Thread James Gregory
Something wonky. I assume you're on the latest version? On Wed, Jan 27, 2010 at 3:37 PM, Chris F wrote: > While debugging, I see that the overrides I have in place for my > joined subclasses get executed twice. Only the 3 overrides I have in > place for 3 of 4 joined subclasses in the system beh

Re: [fluent-nhib] Re: Interaction between ClassMap and AutoMapping Conventions

2010-01-26 Thread James Gregory
my JoinedSubclasses). I've been finding the transition very > painful with multiple fixes required but I can only tackle one at a > time. > > How should I get the demo to you once I've got it together? > > - Chris F. > > On Jan 26, 2:05 pm, James Gregory wr

Re: [fluent-nhib] Interaction between ClassMap and AutoMapping Conventions

2010-01-26 Thread James Gregory
Conventions are applied to everything, there's no difference between ClassMap and AutoMappings in that regard. You shouldn't be getting a null Property, that seems like a bug. Can you recreate it in a failing test? On Tue, Jan 26, 2010 at 6:41 PM, Chris F wrote: > Hi, > > I'm on S#arp Arch 1.0

Re: [fluent-nhib] Re: Identifier Too Long - Alias Name

2010-01-24 Thread James Gregory
FYI, Fluent NHibernate has *always* auto-quoted table names, but we have recently just changed it to auto-quote column names aswell. On Sun, Jan 24, 2010 at 2:05 PM, clayton collie wrote: > are you still getting the "not found" error ? > > if you know the table or view exists in the DB, then you

Re: [fluent-nhib] Fluent nhibernate automapping - how to order columns

2010-01-22 Thread James Gregory
but yeah, if a patch came along I'm sure it'd get applied. On Fri, Jan 22, 2010 at 1:25 PM, James Gregory wrote: > It's a problem easily solved for ClassMap based mappings, but automapping > will be tricky. The only real order that's available is that of what your &

Re: [fluent-nhib] Fluent nhibernate automapping - how to order columns

2010-01-22 Thread James Gregory
wrote: > But you're not the first person to ask for this so.. if we received a patch > for this theres a good chance it would get applied. > > On Mon, Jan 18, 2010 at 9:03 PM, James Gregory wrote: > >> Can't be done. Properties are mapped in

Re: [fluent-nhib] Identifier Too Long - Alias Name

2010-01-21 Thread James Gregory
Hudson's got it right, except the AsBag() is unnecessary. That is if you're actually referring to the table name, and not an alias. On Thu, Jan 21, 2010 at 7:30 PM, Hudson Akridge wrote: > HasManyToMany().AsBag().Table("ShorterJoinTableName"); > > If you're talking about the aliases that are used

Re: [fluent-nhib] ReferencesAny update

2010-01-20 Thread James Gregory
Well, it is officially released, it's just not documented. A lot of stuff is like that in FNH unfortunately. Feel free to contribute some docs ;) If you're having any trouble actually using it, I'm sure someone here can help. On Wed, Jan 20, 2010 at 8:07 PM, Berryl Hesh wrote: > My googling so

Re: [fluent-nhib] column length is not being mapped

2010-01-19 Thread James Gregory
>> That's what she said, anyway I downloaded 614 and length is back! >> >> >> On Tue, Jan 19, 2010 at 10:16 AM, James Gregory >> wrote: >> >>> Hey, it's not me! Build 614 is trunk. >>> >>> >>> On Tue, Jan 19, 2010 at 9:

Re: [fluent-nhib] How can I reconcile the source/binaries with the github commits?

2010-01-19 Thread James Gregory
Not really, no; it is probably worth doing though. If you can trust me, the latest version should always be the latest commit in master. The build gets raised about 5 minutes after a commit, so unless the build is failing (which it isn't: http://teamcity.codebetter.com/viewType.html?buildTypeId=bt

Re: [fluent-nhib] column length is not being mapped

2010-01-19 Thread James Gregory
el Henriksson >> wrote: >> >>> build 0 because not even albacore runs on my system I am using the latest >>> from your trunk. >>> >>> >>> On Mon, Jan 18, 2010 at 3:39 PM, James Gregory >>> wrote: >>> >>>> What

Re: [fluent-nhib] Subclass Mapping Discriminator Value

2010-01-18 Thread James Gregory
There's a DiscriminatorValue method in SubclassMap which can be used to specify the value for that one entity, the equivalent of the first parameter in your SubClass calls. On Mon, Jan 18, 2010 at 5:49 PM, JB wrote: > I noticed that the DiscriminateSubClassOnColumn inline definitions are > depri

Re: [fluent-nhib] column length is not being mapped

2010-01-18 Thread James Gregory
What build you on? On Mon, Jan 18, 2010 at 2:34 PM, Mikael Henriksson wrote: > Hi, > > My column lengths are not being mapped which is causing problems for me. > Did I get a bad build or something? > > -- > You received this message because you are subscribed to the Google Groups > "Fluent NHiber

Re: [fluent-nhib] Fluent nhibernate automapping - how to order columns

2010-01-18 Thread James Gregory
Can't be done. Properties are mapped in the order they're given by .Net through the System.Type.GetProperties() method afaik, we do no ordering. On Sun, Jan 17, 2010 at 7:38 PM, Sean Feldman wrote: > When mapping a simple entity, I would like to set the order of columns > in generated schema. Wit

Re: [fluent-nhib] Base class mapping issue

2010-01-18 Thread James Gregory
scriminated = type => type == typeof (BoatLoan); >> >> >s.IsDiscriminated = type => type == typeof (CarLoan); >> >> >s.IsDiscriminated = type => type == typeof >> (CreditCard); >> >> >s.IsD

Re: [fluent-nhib] New way of doing Composite IDs?

2010-01-15 Thread James Gregory
CompositeId() On Fri, Jan 15, 2010 at 12:27 AM, keith.nicho...@gmail.com < keith.nicho...@gmail.com> wrote: > > In the latest build I have, there doesn't seem to be a > UseCompositeID... > > so I'm just wondering how I'm supposed to map them now? > > Regards, > > Keith > > -- > You received this

Re: [fluent-nhib] Re: Mapping System.Nullable

2010-01-14 Thread James Gregory
I'd hazard a guess and say this isn't supported in NHibernate. As Nullable is a class that wraps another, there really isn't a field called _Amount in it. So unless there's some magic syntax to get around this in NHibernate that I'm not aware of, I'm afraid you're out of luck. I'd suggest dumping

Re: [fluent-nhib] Re: Mapping System.Nullable

2010-01-14 Thread James Gregory
No I noticed that, I just didn't notice CurrencyAmount was a struct. I wouldn't do that, but then I don't see why it wouldn't work. On Thu, Jan 14, 2010 at 7:44 PM, playtime wrote: > I think you've misread CurrencyAmountComponent as the mapped component > whereas it just contains a helper functio

Re: [fluent-nhib] Mapping System.Nullable

2010-01-14 Thread James Gregory
Not sure why you need a Nullable<> here, as even though your class may be represented as a component it's still a reference type and thus implicitly nullable anyway. On Thu, Jan 14, 2010 at 6:18 PM, playtime wrote: > Well, it works transparently with all the built-in value types such as > int, de

Re: [fluent-nhib] Base class mapping issue

2010-01-14 Thread James Gregory
I've not had a great deal of experience with what I'm about to suggest, but I know at least Hudson has dealt with it in the past so he might weigh in later. Your entities aren't actually related as far as NHibernate is concerned. They're not being mapped as subclasses of anything, so NH doesn't kn

Re: [fluent-nhib] Re: Link Table of Same Type

2010-01-13 Thread James Gregory
If you're getting that particular exception, then there's an issue I need to fix. That exception gets thrown when FNH can't find the other side of a relationship, usually due to there being some ambiguity in the naming of collections. Sounds like we either need to be smarter, or stop throwing that

Re: [fluent-nhib] FK constraint naming

2010-01-12 Thread James Gregory
Looks right, are you sure your convention is being applied? (ie can you break into it with the debugger?) On Tue, Jan 12, 2010 at 3:52 PM, Berryl Hesh wrote: > Hello > > Can someone please show me a convention that would set the name of an > FK constraint? > > I unsuccessfully tried this one, ge

Re: [fluent-nhib] "Dialect does not support sequences"

2010-01-12 Thread James Gregory
The exception seems pretty self explanatory to me, sequences aren't supported by Firebird. You'll need to use one of the other generators, this stack overflow question seems to suggest using native instea

Re: [fluent-nhib] Re: Custom HQL

2010-01-11 Thread James Gregory
"Simple stuff" isn't quite how I'd put it. More like "everything but custom HQL/SQL queries (and a couple of other things)"... :) On Mon, Jan 11, 2010 at 9:20 PM, Eric wrote: > So FHN would be used for the simple stuff, and then have additional > HBM files for the custom HQL/SQL queries? > > Reg

Re: [fluent-nhib] Re: "The invoked member is not supported in a dynamic assembly." while attempting to compile mappings

2010-01-11 Thread James Gregory
ode I've written delves into generating assemblies > though one of the third party libraries I'm using may be doing some of > that behind the scenes. > So I guess I need to limit which assemblies I pass into FNH. > > On Jan 11, 11:43 am, James Gregory wrote: > > My gue

Re: [fluent-nhib] Re: Mapping BaseClass

2010-01-11 Thread James Gregory
http://wiki.fluentnhibernate.org/Auto_mapping#Ignoring_base-types On Mon, Jan 11, 2010 at 5:17 PM, c.sokun wrote: > What is I do not want the base class to be include but it subclass? > For instance only child class schema will be generate (in greenfield > case). > > On Jan 11, 1:44 am, Peter Fo

Re: [fluent-nhib] Re: "The invoked member is not supported in a dynamic assembly." while attempting to compile mappings

2010-01-11 Thread James Gregory
My guess is your app domain contains some dynamic assemblies that shouldn't be passed to FNH. On Mon, Jan 11, 2010 at 4:38 PM, Kenneth Cochran wrote: > My plugin assemblies are loaded using the AssemblyResolve event: > >private Assembly CurrentDomain_AssemblyResolve(object sender, > Resol

Re: [fluent-nhib] "The invoked member is not supported in a dynamic assembly." while attempting to compile mappings

2010-01-11 Thread James Gregory
That exception is coming from .Net itself, and it's saying that the GetExposedTypes method can't be used for your particular assembly because it's dynamic. What is the assembly you're using, how is it produced? Seems strange it would be flagged as dynamic unless you're code-genning a new assembly.

Re: [fluent-nhib] Re: L2 Cache configuration

2010-01-08 Thread James Gregory
mes, > > > > > > > > I pwn you! Pick your team and map, discuss strategy, it won't > matter, > > > > > we'll > > > > > > beat you even with low grade weapons and a 20 second head start. > > > Bring > > > > > your

Re: [fluent-nhib] Re: L2 Cache configuration

2010-01-08 Thread James Gregory
7;t matter, > > > we'll > > > > beat you even with low grade weapons and a 20 second head start. > Bring > > > your > > > > weaksauce! > > > > > > On Thu, Jan 7, 2010 at 10:02 AM, Ollie > > > wrote: > > > > > t

Re: [fluent-nhib] Re: Map two (or more) tables to one class

2010-01-08 Thread James Gregory
+1 On Fri, Jan 8, 2010 at 2:21 PM, Hudson Akridge wrote: > "I don't recommend getting into subclass > (inherited/derived class) approach because classes represent your > database tables (database don't do polymorphism)." > > Unless you mis-spoke here, I strongly disagree. Nhibernate is built arou

Re: [fluent-nhib] Ignore all properties outside of the abstract base class

2010-01-08 Thread James Gregory
http://wiki.fluentnhibernate.org/Auto_mapping#Ignoring_properties that's all we've got. On Fri, Jan 8, 2010 at 12:06 PM, marcus wrote: > Is it possible to tell fluent nhibernate not to automap properties > created in a subclass? > > -- > You received this message because you are subscribed to th

Re: [fluent-nhib] AutoMap from several assemblies

2010-01-07 Thread James Gregory
What doesn't work about your above statements? On Thu, Jan 7, 2010 at 4:48 PM, ksc654 wrote: > I'm new to both NHibernate and the fluent API. I'm attempting to > iterate through a list of assemblies, automapping each one. Then I > want to load the mappings into a configuration. All the examples

Re: [fluent-nhib] Re: L2 Cache configuration

2010-01-07 Thread James Gregory
a counterstike chat forum... >> >> So can I use an xml config file and FHN simultaneously? >> >> and secondly, why haven't you guys made it easy to config L2 Cache in >> FHN? ;) >> >> >> Ollie >> >> >> On Jan 7, 3:15 pm, James

Re: [fluent-nhib] Re: L2 Cache configuration

2010-01-07 Thread James Gregory
ondly, why haven't you guys made it easy to config L2 Cache in > FHN? ;) > > > Ollie > > > On Jan 7, 3:15 pm, James Gregory wrote: > > Dude, I hereby ban you from FNH. > > > > On Thu, Jan 7, 2010 at 3:10 PM, Hudson Akridge >wrote: > >

Re: [fluent-nhib] Re: L2 Cache configuration

2010-01-07 Thread James Gregory
e different configurations for different environments but the >> configuration object is only instantiated in one assembly (eg. Data assembly >> for config, and different values for a test project, versus website, versus >> a desktop app). >> >> >> On Thu, Jan 7, 20

Re: [fluent-nhib] Re: L2 Cache configuration

2010-01-07 Thread James Gregory
Ew. On Thu, Jan 7, 2010 at 3:01 PM, Hudson Akridge wrote: > Alternatively, you can still use a hibernate.config.xml file with FNH, and > imo it's much easier than modifying the config in code. > > On Thu, Jan 7, 2010 at 8:24 AM, James Gregory wrote: > >> Not done it

Re: [fluent-nhib] Re: L2 Cache configuration

2010-01-07 Thread James Gregory
Not done it myself, try google or the nhusers list. On Thu, Jan 7, 2010 at 2:22 PM, Ollie wrote: > okay, I naive about configuring the instance exposed via > ExposeConfiguration for Caching... > > Any hints ;) > > > On Jan 7, 2:18 pm, James Gregory wrote: > > Use

Re: [fluent-nhib] Set DiscriminatorValue automatic with fluent mappings?

2010-01-07 Thread James Gregory
Without creating a SubclassMap, Fluent won't know that you want those classes mapping. On Thu, Jan 7, 2010 at 2:18 PM, marcus wrote: > The only thing I need to to in my SubClassMap is to setup the > DiscriminatorValue, is this possible to do automatic with fluent > mappings so I do not have to a

Re: [fluent-nhib] L2 Cache configuration

2010-01-07 Thread James Gregory
Use ExposeConfiguration on your Fluently.Configure chain to get access to the original NHibernate Configuration instance, with that you can do what you please. On Thu, Jan 7, 2010 at 2:08 PM, Ollie wrote: > Can I configure the L2 cache from FNH? > > > > Cheers > > Ollie > > -- > You received thi

Re: [fluent-nhib] How to map table doesn't have an PrimaryKey.

2009-12-31 Thread James Gregory
How do you identify rows in it then? There has to be some kind of key, even if it isn't a surrogate. On Thursday, December 31, 2009, Nizam wrote: > Hi, >  In my table doesn't have an primarykey, so i need not to use the id > property in the hbm Right?. If I removed the id property then the hbm >

Re: [fluent-nhib] The example with http://fluentnhibernate.orgthrows out an exception

2009-12-30 Thread James Gregory
I distinctly remember doing this previously, it must've been reverted somehow. 2009/12/29 Paul Batum > The former - just added a reference. > > 2009/12/30 Hudson Akridge : > > Just out of curiosity Paul, how'd you resolve the problem? In code > > (referencing one of the libraries forcing VS to b

Re: [fluent-nhib] Где взять документ ацию по fluent

2009-12-29 Thread James Gregory
English only, sorry. Docs are at http://wiki.fluentnhibernate.org and http://fluentnhibernate.org/api/index.htm. 2009/12/29 KuMa1104 > Здравствуйте я только начал изучать fluent. > Я постоянно допускаю ошибки потому что точно не знаю что как работает. > Где взять какую нибудб документацию по ти

Re: [fluent-nhib] how to import from the SVN repository

2009-12-28 Thread James Gregory
Subversion repository doesn't exist anymore. Use the git repository: http://github.com/jagregory/fluent-nhibernate. On Mon, Dec 28, 2009 at 7:10 PM, apgui wrote: > I would like to import the SVN repository. > Which user and pwd I must use for? > TIA > Marcelo > > -- > > You received this message

Re: [fluent-nhib] Re: Are dictionaries supported by the automapper?

2009-12-28 Thread James Gregory
Aye, just use an IAutomappingOverride for the entity in question. On Mon, Dec 28, 2009 at 11:47 AM, Paul Batum wrote: > It's not supported. I estimate that none of the regular contributors > consider this a high priority so its unlikely to get attention any > time soon, unless a member of the co

Re: [fluent-nhib] AttributePropertyConvention and reference properties

2009-12-25 Thread James Gregory
It isn't because it's a Property convention, which only covers things mapped with the Map method; Map == . It would be nice if that convention could work on everything. It should be easy to do by duplicating the functionality with an IRederenceConvention. On Thursday, December 24, 2009, Chris Nic

Re: [fluent-nhib] Re: Help with HasManyToMany

2009-12-23 Thread James Gregory
re do i open a feature request? :-P > > > > On Dec 23, 11:38 am, James Gregory wrote: > > You can't map it as a HasManyToMany. You'll need to create a new entity > that > > represents the join table, and create a HasMany on both sides. > > > > > > >

Re: [fluent-nhib] Help with HasManyToMany

2009-12-23 Thread James Gregory
You can't map it as a HasManyToMany. You'll need to create a new entity that represents the join table, and create a HasMany on both sides. On Wed, Dec 23, 2009 at 9:01 AM, OhadahO wrote: > hi all, > > i have an entity with many to many relationship. > i want that in the link table i will have m

Re: [fluent-nhib] Rock - Me - Hard place

2009-12-22 Thread James Gregory
Where'd you get the latest build from? On Tue, Dec 22, 2009 at 4:20 PM, playtime wrote: > If I use the RTM, I run into my old friend, Issue 323. > > However, if I run the latest build I get this instead. > > Unit Test Adapter threw exception: Type is not resolved for member > 'FluentNHibernate.Cf

Re: [fluent-nhib] Fluently configure hbm2ddl.keywords

2009-12-21 Thread James Gregory
You can do it in ExposeConfiguration. ExposeConfiguration(cfg => cfg.SetProperty("...", "...")); On Mon, Dec 21, 2009 at 10:03 PM, Chris Marisic wrote: > Is there a fluent method for setting hbm2ddl.keywords? If not what is > the current syntax for manually setting properties in the > configu

Re: [fluent-nhib] Exclude Property from Automapping?

2009-12-18 Thread James Gregory
http://wiki.fluentnhibernate.org/Auto_mapping#Ignoring_properties On Friday, December 18, 2009, Chris Cyvas wrote: > Is there a way to exclude certain properties from being mapped when > using the AutoMapping functionality? For instance, I have Price and > Quantity in my partial class, but I want

Re: [fluent-nhib] Automapping multiple lists of the same type in an Entity - possible bug?

2009-12-18 Thread James Gregory
They can be completely empty. They inherit their properties. On Friday, December 18, 2009, tbushell wrote: > > > On Dec 18, 4:22 am, "Martin Hornagold" > wrote: >> In your case you wouldn't need any extra members for the subclasses. > > But I still need an Id member in the new classes, correct?

Re: [fluent-nhib] Component that references a component

2009-12-18 Thread James Gregory
I'd map your Money type as an IUserType, and then you should just be able to Map(x => x.Value).CustomType(). On Fri, Dec 18, 2009 at 7:10 AM, Bart Reyserhove wrote: > Given the following class structure: > > public class SalesItem > { > > protected virtual IList prices {get; set;} > > } > > > pub

Re: [fluent-nhib] Help with mapping a many-to-many property (HasManyToMany)

2009-12-17 Thread James Gregory
It can't find the other side of the candidateFriendMembers relationship, because you haven't mapped one. The code that's falling over is what determines what table name should be assigned to the collection. Technically it shouldn't be falling over on this, but as a work-around you should just be ab

Re: [fluent-nhib] Re: Inheritance Trouble

2009-12-17 Thread James Gregory
base classes (User, > > > Role, etc.) but still the SpecificUser is not generated. > > > > > Any light on this? > > > > > On 15 dic, 09:06, James Gregory wrote: > > > > > > I missed the part about you having multiple assemblies. > > >

Re: [fluent-nhib] Re: Auto mapping a IDictionary

2009-12-17 Thread James Gregory
Why are you calling GetIndexMapping() ? A stack trace for your exception would be helpful too. On Thu, Dec 17, 2009 at 11:58 AM, marcus wrote: > Does anyone know if it's possible to ignore a property of type > IDictionary because the ignoreproperty does not seem to work on > IDictionary? Just b

Re: [fluent-nhib] Component/Parent

2009-12-16 Thread James Gregory
Thanks for the fix James. I've merged it into master. On Wed, Dec 16, 2009 at 11:41 PM, James Kovacs wrote: > Components with a parent reference are failing under NHibernate 2.1.2 > as HBM schema validation is failing. In the component elements > children, the parent element is listed last after

<    1   2   3   4   5   6   7   8   9   10   >