[fluent-nhib] Re: Caching

2009-06-19 Thread Andrew Stewart
he.AsReadOnly()); Cheers Andy On Fri, Jun 19, 2009 at 8:06 PM, Andrew Stewart < andrew.stew...@i-nnovate.net> wrote: > Hi Jose > This is probably really late to reply, but looks like it's been implemented > on the individual Classes. > > Here's an e

[fluent-nhib] Re: Automapping many to one

2009-04-27 Thread Andrew Stewart
Hi Kevin I'm not sure why that should of happened, can you give us your configuration and your example to look at: Cheers Andy On Sun, Apr 26, 2009 at 10:47 PM, MaggiePlusPlus wrote: > > I am using AutoMap exclusively as well (but am also very new at > this). I have gotten the Many-to-one mapp

[fluent-nhib] Re: Working with NHibernate Validator

2009-03-10 Thread Andrew Stewart
Somethiing like this var configuration = new Configuration(); var properties = MsSqlConfiguration.MsSql2005.ConnectionString.FromConnectionStringWithKey("DbString").ToProperties(); configuration.AddProperties(properties); var nhvc = new NHVConfigurat

[fluent-nhib] Re: Composite Key for resolving Many to Many Relationship

2009-03-10 Thread Andrew Stewart
Hi Can I ask you to check a few things, we'll take your service out of the equation to start with. Order o = new Order(); o.OrderDate = DateTime.Now; Session.SaveOrUpdate(o); Product p = new Product(); p.Name = "Custom Item"; Session.SaveOrUpdate(p); OrderProduct op = new OrderProduct(); op.Prod

[fluent-nhib] Re: Where is idbag?

2009-03-10 Thread Andrew Stewart
Hi I believe we received a patch for this back in January, so there should be an AsIdBag() method somewhere. Sorry I can't be more specific but I've not got the current code base on this machine. Cheers Andy On Mon, Mar 9, 2009 at 5:48 PM, epitka wrote: > >> >> Hi, >> Does FNH support idbag map

[fluent-nhib] Re: Patch for Fluent Oracle Configuration

2009-03-10 Thread Andrew Stewart
> > I can't seem to be able to add a file though. is it restricted? Not that I know of, can't you attach it to this email? Cheers Andy On Tue, Mar 10, 2009 at 4:10 AM, JF wrote: > > This patch allow us to fluently configure the Oracle9 dialect like > this: > > OracleConfiguration.Oracle9.Con

[fluent-nhib] Re: Testing against existing schema

2009-03-10 Thread Andrew Stewart
Not to me sorry, anyone else know anything. On Mon, Mar 9, 2009 at 6:07 PM, brendanjerwin wrote: > > I seem to remember reading something a while back about a tool in > fluent nhibernate (or near it) that would assist in testing that > mappings do not conflict with an existing schema. Does this r

[fluent-nhib] Re: Conventions overhaul

2009-03-04 Thread Andrew Stewart
Hi James Generally I agree that a rewrite of conventions needed to be done, you could really see that class was getting crowded and ugly. I'd of probably implemented it very similar to your way, however can any of this be achieved: - Some form of backwards compatibility layer for previous versi

[fluent-nhib] Re: How to add mappings based on a consistent convention?

2009-03-04 Thread Andrew Stewart
Hi Unless someone can point to something I don't know about then the column name is always mapped to the property name. But please put this in the defect log(I'm hoping there's a feature request section) or we're always welcome to recieve a patch. To patch this you'd have to modify the PropertyMap

[fluent-nhib] Re: Auto Mapper Enum Types

2009-02-26 Thread Andrew Stewart
Hi James Thats my fault when I first wrote the automapper I didn't know that nhibernate could map enums so i turned it off as I had a bunch of enums in my code i didnt want mapped. Seems my inexperience with nhibernate in regards to enums, forced me into that mistake. Sorry guys. Andy On Wed, Fe

[fluent-nhib] Re: Inheritance ?

2009-02-26 Thread Andrew Stewart
Hi Yeah, unless someone has upgraded it from my original implementation then AutoMapping wont be able to do that for you automatically and you'll have to do it manually. For example: .ForTypesThatDeriveFrom< Person >( map => { map.JoinedS

[fluent-nhib] Re: Now Where should I start

2009-02-20 Thread Andrew Stewart
le. I have a blog post that sort of covers this in the works - I'm >> really going to try to get that finished this weekend. In any case, feel >> free to ping me with whatever questions you have. >> >> Paul Batum >> >> >> On Fri, Feb 20, 2009 at 7:

[fluent-nhib] Now Where should I start

2009-02-19 Thread Andrew Stewart
Hi I'm getting towards the end of one of my personal projects, so I'm going to be in a position to start contributing again. Where am I best concentrating my effort at the moment, on the PB rewrite branch of supporting the main trunk? Cheers Andy -- = I-nnovate Software - Bespok

[fluent-nhib] Re: Fluent configuration API

2009-02-03 Thread Andrew Stewart
Nice one James, So the next abstraction should be Fluently.WriteMyApp().Go(); ;o) On Tue, Feb 3, 2009 at 8:49 AM, James Gregory wrote: > Good catch Chris, I'll have a look at this asap. > > > On Tue, Feb 3, 2009 at 4:55 AM, Chris Marisic wrote: > >> >> How dare you turn my entire NHibernate Se

[fluent-nhib] Re: Troubleshooting AutoPersistenceModel problems

2009-02-01 Thread Andrew Stewart
s prevents me from looking at > them during one of the only times I want to do so. > > Am I doing this wrong? Missing something obvious? Is there another way > to inspect the mappings? > > > > > > > On Jan 30, 10:31 am, Andrew Stewart > wrote: > > Hi >

[fluent-nhib] Re: Troubleshooting AutoPersistenceModel problems

2009-01-30 Thread Andrew Stewart
it'd be thrilling if > there was a way to turn it on. > > On Jan 28, 2:49 pm, Andrew Stewart > wrote: > > Hi Jay > > Dont quote me on this but I think if you configure you model inside a > nunit > > test you ca see the mappings in output. > > I'm

[fluent-nhib] Re: Troubleshooting AutoPersistenceModel problems

2009-01-28 Thread Andrew Stewart
Hi Jay Dont quote me on this but I think if you configure you model inside a nunit test you ca see the mappings in output. I'm away from the source at the mo, let me know if that doesnt solve your problem and I'll boot the source up and have a play Cheers Andy On Wed, Jan 28, 2009 at 5:36 PM, Ja

[fluent-nhib] Re: AutoMapper with Nullable Properties

2009-01-20 Thread Andrew Stewart
Hi Thanks for the bug report, I'll put that on my todo list of fixes. In the mean time you should be able to ignore that property using the IgnoreProperty Method on ForTypesThatDeriveFrom<> Method off persistancebase. eg model.ForTypesThatDeriveFrom(m => m.IgnoreProperty(p => p.MyDate)); Does th

[fluent-nhib] Re: Signing our assemblies

2009-01-13 Thread Andrew Stewart
I think signing is a good idea, it just makes playing with other code easier, imho. Andy On Tue, Jan 13, 2009 at 7:58 PM, James Gregory wrote: > Nobody seemed to have any opinions on it, so it's been left alone > currently. The key is still distributed with the project, so you're welcome > to sig

[fluent-nhib] Re: Using the various modes simultaneously

2009-01-13 Thread Andrew Stewart
Hi At the moment to my knowledge, there is no easy way to find out whats already been mapped from nhibernate itself so we can't find that out. If anyone knows a way, it would be a better way to check what's being mapped than my current implementation. Andy On Tue, Jan 13, 2009 at 4:06 PM, James

[fluent-nhib] Re: Rethinking Fluent NHibernate

2009-01-13 Thread Andrew Stewart
I think we need to make sure this is a combined effort. No complaints of > what anybody has done at all, but there's currently a lot of individual > responsibility and I think we need to get some shared ownership in future. > > On Tue, Jan 13, 2009 at 9:29 AM, Andrew Ste

[fluent-nhib] Re: Difficulty integrating into AutoPersistenceModel into S#arp Architecture

2009-01-13 Thread Andrew Stewart
lol Yeah thats what I meant. Andy On Tue, Jan 13, 2009 at 9:28 AM, James Gregory wrote: > So static classes, not anonymous classes? Anonymous classes being the new { > Something = 1, Another = 3 } Linq thing. > > > On Tue, Jan 13, 2009 at 9:25 AM, Andrew Stewart < > andrew.

[fluent-nhib] Re: Rethinking Fluent NHibernate

2009-01-13 Thread Andrew Stewart
I'll expand on this, what I mean is as soon as you know how your going to organise the solution and it all hooks together I'll get involved and help you move it forward. Cheers Andy On Tue, Jan 13, 2009 at 9:28 AM, Andrew Stewart < andrew.stew...@i-nnovate.net> wrote: > Hi

[fluent-nhib] Re: Rethinking Fluent NHibernate

2009-01-13 Thread Andrew Stewart
time on it this week. > > > On Tue, Jan 13, 2009 at 7:26 AM, Dru Sellers wrote: > >> +1 >> >> >> >> On Mon, Jan 12, 2009 at 1:55 PM, Andrew Stewart < >> andrew.stew...@i-nnovate.net> wrote: >> >>> Yo >>> It's goo

[fluent-nhib] Re: Difficulty integrating into AutoPersistenceModel into S#arp Architecture

2009-01-13 Thread Andrew Stewart
13, 2009 at 9:22 AM, James Gregory wrote: > Where did they mention anonymous classes? > > On Tue, Jan 13, 2009 at 9:20 AM, Andrew Stewart < > andrew.stew...@i-nnovate.net> wrote: > >> Fix for anonymous classes is now in the trunk. >> Andy >> >

[fluent-nhib] Re: Difficulty integrating into AutoPersistenceModel into S#arp Architecture

2009-01-13 Thread Andrew Stewart
Fix for anonymous classes is now in the trunk. Andy On Tue, Jan 13, 2009 at 9:14 AM, Andrew Stewart < andrew.stew...@i-nnovate.net> wrote: > Doesn't look to hard to support though, quick recap: > - Pluralisation, although we don't support, I've successfully achi

[fluent-nhib] Re: Difficulty integrating into AutoPersistenceModel into S#arp Architecture

2009-01-13 Thread Andrew Stewart
=> b == typeof(BaseEntity); - Anonymous Classes, I have an patch for this here, I'll get it applied to the trunk. If I get approved on there list I'll send this accross. Andy On Tue, Jan 13, 2009 at 9:06 AM, Andrew Stewart < andrew.stew...@i-nnovate.net> wrote: > Same here

[fluent-nhib] Re: Difficulty integrating into AutoPersistenceModel into S#arp Architecture

2009-01-13 Thread Andrew Stewart
Same here On Tue, Jan 13, 2009 at 9:03 AM, James Gregory wrote: > Awaiting approval :) > > > On Tue, Jan 13, 2009 at 3:52 AM, wrote: > >> >> We have been using Fluent NHibernate within S#arp Architecture and >> absolutely love it. A few of us have taken a stab at integrating the >> AutoPersiste

[fluent-nhib] Re: Repository

2009-01-12 Thread Andrew Stewart
on a request, SMap will go through > the process of building the instance and then cache it in the request > (HttpContext.Items) for you. Each additional request for an ISession > instance on that request will result in that same instance. > > -c > > ___

[fluent-nhib] Re: Rethinking Fluent NHibernate

2009-01-12 Thread Andrew Stewart
Yo It's good to see you've all caught up with me ;o), by the way automap can do most of this already (disclaimer: there are bits missing) I'm all for this - Chad has hit it on the button, basically we need cleaner convention support, and to make automap talk to a semantic model rather than the fl

[fluent-nhib] Re: Error when using WithTable (From HEAD revision)

2009-01-12 Thread Andrew Stewart
Hi Brendan, Why are you setting the table name twice, whats that second withTable for? WithTable("PartyContact"); WithTable("Contact",m=> {m.HasOne(t =>t.ContactSource);}); Cheers Andy On Mon, Jan 12, 2009 at 4:49 PM, brendanjerwin wrote: > > My Map: > > public ContactMap() >{ >

[fluent-nhib] Re: Repository

2009-01-12 Thread Andrew Stewart
I'm going to be quiet now, think I've already figured this out. You could do it via a facility in castle for example. Andy On Mon, Jan 12, 2009 at 2:54 PM, Andrew Stewart < andrew.stew...@i-nnovate.net> wrote: > Hi > Just out of interest how could you configure the IO

[fluent-nhib] Re: Repository

2009-01-12 Thread Andrew Stewart
Hi Just out of interest how could you configure the IOC to send in a copy of ISession as personally I tend to open a session per HttpRequest? Andy On Sun, Jan 11, 2009 at 8:40 PM, Stuart Campbell wrote: > Yeah I wasn't completely happy with the inheritance approach. Although I > also didn't wan

[fluent-nhib] Re: Auto Mapping blog posts

2009-01-11 Thread Andrew Stewart
Cheers James This is something that I've been meaning to do for ages, also I never knew you could use TypeConventions that way so thanks for pointing it out. :o) Andy On Sun, Jan 11, 2009 at 4:24 PM, James Gregory wrote: > For anyone that doesn't subscribe to my blog, I've started writing a seri

[fluent-nhib] Re: question on auto mapping

2009-01-09 Thread Andrew Stewart
=> > eb.Version(d => d.Versao) > .TheColumnNameIs("Versao") > .SetAttributes(new Attributes { > {"type", "ModeloOO.NH.UserTypeTimestamp,ModeloOO.NH"}, > {"unsaved-value", "null"}, > {&

[fluent-nhib] Re: question on auto mapping

2009-01-09 Thread Andrew Stewart
Hi james Thanks for looking at this for me. Yeah that makes sense as to why it's producing no xml. Luis are your problems solved now? Unfortunalty there is no automatic way to map your version column at this time, you'll have to take your manual mapping and apply it in the FromDerivedFromClass for

[fluent-nhib] Re: question on auto mapping

2009-01-08 Thread Andrew Stewart
Hi James He needs to map it to a timestamp, which is where I get lost as you need to use IUserType to make that work which I have no idea how to use. Thanks for helping, I think you know how that all works better than myself. Andy On Thu, Jan 8, 2009 at 4:27 PM, James Gregory wrote: > Hello Lui

[fluent-nhib] Re: Automapping a complex inheritance

2009-01-08 Thread Andrew Stewart
I had already set the baseclass to my > EntityBase class. > > On 8 jan, 12:00, "Andrew Stewart" > wrote: > > Hi Luis > > > > you need to inform automapper that your base type is EntityBase rather > than > > object, something similar > > to bel

[fluent-nhib] Re: Debugging Xml Output by FNH

2009-01-08 Thread Andrew Stewart
Hi Troy You should be able to use PersistenceModel to write the mappings instead. Andy On Thu, Jan 8, 2009 at 3:57 PM, Troy Goode wrote: > > I know from my recent foray into automapping that I can see what the > XML produced by the automapper is using: > > automapper.WriteMappingsTo("folderpath

[fluent-nhib] Re: question on auto mapping

2009-01-08 Thread Andrew Stewart
Hi Luis Ahh, that makes sense now my fault on the understanding. In that case your only option is to manually map the Version for each class. If you have time though and we're always willing to except a patch for the problem, you would need to ammend the AutoMapVersion class. Cheers Andy On Thu,

[fluent-nhib] Re: question on auto mapping

2009-01-08 Thread Andrew Stewart
One quick thing, it seems at the moment, the property that timestamps must be called version or timestamp, otherwise you'll have to manually map it. On Thu, Jan 8, 2009 at 2:34 PM, Andrew Stewart wrote: > No Problem, > The version column as a timestamp you can use the Timestamp

[fluent-nhib] Re: question on auto mapping

2009-01-08 Thread Andrew Stewart
because on the db the version > column is of type timestamp) > > > > > > Thanks. > > --- > > Luis Abreu > > > > *From:* fluent-nhibernate@googlegroups.com [mailto: > fluent-nhibern...@googlegroups.com] *On Behalf Of *Andrew Stewart > *S

[fluent-nhib] Re: Automapping a complex inheritance

2009-01-08 Thread Andrew Stewart
Hi Luis you need to inform automapper that your base type is EntityBase rather than object, something similar to below should do the job. var autoMapper = AutoPersistenceModel .MapEntitiesFromAssemblyOf() .Where(t => t.Namespace == "FluentNHibernat

[fluent-nhib] Re: question on auto mapping

2009-01-08 Thread Andrew Stewart
Hi Luis you need to inform automapper that your base type is EntidadeBase rather than object, something similar to below should do the job. var autoMapper = AutoPersistenceModel .MapEntitiesFromAssemblyOf() .Where(t => t.Namespace == "FluentNHibern

[fluent-nhib] Re: Automap Inheritance Issue

2009-01-08 Thread Andrew Stewart
27;t worth it for my particular > project. It was a fun spike though! > > Troy > > > On Tue, Jan 6, 2009 at 2:39 PM, Andrew Stewart < > andrew.stew...@i-nnovate.net> wrote: > >> Hi Troy >> Here we go straight from the tests :o), always a good

[fluent-nhib] Re: Cascading saveorupdate on one-to-one relationship and duplicate mapping

2009-01-07 Thread Andrew Stewart
Hi Seb It was a bug in my automap class for HasOne relationships, if you get the latest version it's now been resolved. Andy On Wed, Jan 7, 2009 at 9:09 AM, James Gregory wrote: > I've had a look and I don't think there's a way to do what you're asking; > however, I've forwarded your question o

[fluent-nhib] Re: Automap Inheritance Issue

2009-01-06 Thread Andrew Stewart
ect. When you have some time, any > help would be appreciated. > > Troy > > On Jan 6, 11:44 am, "Andrew Stewart" > wrote: > > Hi Troy > > I'm away from the code right now but the answers your are looking for are > > under the WithConventions meth

[fluent-nhib] Re: Automap Inheritance Issue

2009-01-06 Thread Andrew Stewart
Hi Troy I'm away from the code right now but the answers your are looking for are under the WithConventions method. >From there you can set your baseobject to be BaseEntity rather than object and set GetPrimaryKeyName to be Id. Hope that helps if not i'll look it up when I'm back at a machine. A

[fluent-nhib] Re: Sub-class syntax

2009-01-05 Thread Andrew Stewart
9 at 8:53 AM, Andrew Stewart < > andrew.stew...@i-nnovate.net> wrote: > >> Hi James >> Does this break any backwards compatibility? Don't mind if it does just so >> that I can check if the auto-mapping still works. >> >> Andy >> >> >> O

[fluent-nhib] Re: Sub-class syntax

2009-01-05 Thread Andrew Stewart
Hi James Does this break any backwards compatibility? Don't mind if it does just so that I can check if the auto-mapping still works. Andy On Mon, Jan 5, 2009 at 12:14 AM, James Gregory wrote: > FYI I've also made a post about this too: Fluent NHibernate SubClass > syntax > changes

[fluent-nhib] Re: Automap version issue

2009-01-03 Thread Andrew Stewart
Sounds, like a fair change. It's probably worth making the same check for timestamp as well then. As again I think it just checks the name. Andy On Sat, Jan 3, 2009 at 11:54 AM, James Gregory wrote: > I've just committed a change that limits the types of version to int and > long. > > > On Sat, J

[fluent-nhib] Re: Turn off HasMany lazy loading in Fluent?

2008-12-22 Thread Andrew Stewart
Hi James There is an convention that you can use to set the hasmany constraint. var conventions = new Conventions(); convention.OneToManyConvention = m => { m.SetAttribute("lazy","false"); }; Not sure if there is a strongly typed override or not yet though. Andy On Mon, Dec 22, 2008 at

[fluent-nhib] Re: Automap Strangeness with Layer Supertype

2008-12-15 Thread Andrew Stewart
t does the trick for you. Andy On Mon, Dec 15, 2008 at 10:47 AM, Andrew Stewart < andrew.stew...@i-nnovate.net> wrote: > Hi > Just to let you know I'm having a few issues with passing tests, but a > patch is on it's way. > > Andy > > > On Mon, Dec 15, 2008 at

[fluent-nhib] Re: Automap Strangeness with Layer Supertype

2008-12-15 Thread Andrew Stewart
Hi Just to let you know I'm having a few issues with passing tests, but a patch is on it's way. Andy On Mon, Dec 15, 2008 at 9:05 AM, James Gregory wrote: > Also typical, just as I start investigating somebody else answers faster ;) > > On Mon, Dec 15, 2008 at 9:03

[fluent-nhib] Re: Automap Strangeness with Layer Supertype

2008-12-15 Thread Andrew Stewart
Hello Someone found that problem then before I got chance to fix it typical :o) Basically inorder to Automap inheritence mappings it assumes that your base object is object if not then it maps it as an inherited joined class. I'll work on a fix and get it over to you. Andy On Mon, Dec 15, 2008

[fluent-nhib] Re: Conventions GetPrimaryKeyName

2008-12-12 Thread Andrew Stewart
ryone. Andy On Fri, Dec 12, 2008 at 3:27 PM, Andrew Stewart < andrew.stew...@i-nnovate.net> wrote: > Hi Paul, > I need to think through how it would work, but it sounds like the correct > kind of approach. > > Cheers > > Andy > > > On Fri, Dec 12, 2008 at 3:25 PM

[fluent-nhib] Re: Handling Composite Keys

2008-12-12 Thread Andrew Stewart
Again, I'm not sure on if there implemeted, but in general there discouraged by nhibernate. Andy On Fri, Dec 12, 2008 at 4:35 PM, Chris Marisic wrote: > > I hope I'm not misspeaking but I believe composite keys aren't > implemented yet. > > > -- = I-nnovate Software - Bespoke S

[fluent-nhib] Re: Conventions GetPrimaryKeyName

2008-12-12 Thread Andrew Stewart
laring type? > > On Sat, Dec 13, 2008 at 2:00 AM, Andrew Stewart < > andrew.stew...@i-nnovate.net> wrote: > >> Basically intro, the Fluent Interface lets a lot of people still want >> total control of there mappings through code rather than xml. Personally I >> want

[fluent-nhib] Re: Conventions GetPrimaryKeyName

2008-12-12 Thread Andrew Stewart
Basically intro, the Fluent Interface lets a lot of people still want total control of there mappings through code rather than xml. Personally I want to rid that pain from my life, so I wrote the automappings to sit ontop of the current Fluent Interface. The Convention GetPrimaryKeyName Chris corre

[fluent-nhib] Re: .ForTypesThatDeriveFrom attempts to create a mapping despite .Where clause

2008-12-11 Thread Andrew Stewart
Hi James Thanks for the bug report, I'll look into next before moving onto component mapping and will let you know when it's fixed. Thanks Andy On Wed, Dec 10, 2008 at 3:22 PM, James Willock < james.will...@mulhollandsoftware.com> wrote: > > Hi, I believe I have spotted an issue with the AutoPe

[fluent-nhib] Re: New Feature: Automapping Inherited Classes

2008-12-11 Thread Andrew Stewart
Ps, the code is kinda scruffy in places where I've had to fight the fluent interface, so I still need to tidy up a little. On Thu, Dec 11, 2008 at 10:03 PM, Andrew Stewart < andrew.stew...@i-nnovate.net> wrote: > Hi > I've just finished off checking in new automap

[fluent-nhib] Re: Default lazy default value

2008-12-11 Thread Andrew Stewart
yende on this one, but I don't > really care. It's one line of code in your PersistenceModel.Conventions > either way. > > Jeremy D. Miller > The Shade Tree Developer <http://codebetter.com/blogs/jeremy.miller> > jeremydmil...@yahoo.com > > >

[fluent-nhib] New Feature: Automapping Inherited Classes

2008-12-11 Thread Andrew Stewart
Hi I've just finished off checking in new automapping functionality for inherited classes. For example from the unit tests public class ExampleInheritedClass : ExampleClass { public string ExampleProperty { get; set; } public int SomeNumber{ get; set; } } public c

[fluent-nhib] Re: Patch for auto map - detect , recognize many to many

2008-12-11 Thread Andrew Stewart
Hi Oren Glad you like the AutoMapping functionality, it's still rather early but it certainly covers the basics at the moment. Thanks for your patch's they are most appreciated. I've applied your patch now. Andy On Thu, Dec 11, 2008 at 5:57 PM, Ayende Rahien wrote: > Here is a patch to fix this

[fluent-nhib] Re: Default lazy default value

2008-12-11 Thread Andrew Stewart
Hi Oren This is a legacy setting I vaguely remember from an earlier discussion that it's to do with the fact that fluent nhibernate was pulled out of jeremy's own code and he was using lazy load off by default - so it was kept that way for historical reasons. Is that correct Jeremy? Cheers Andy

[fluent-nhib] Re: Proper Component auto mapping syntax

2008-12-11 Thread Andrew Stewart
Hi Chris Basically we will attempt to automap what we can from your class, however after that point you can override our settings with your own in that center bit. How does that sound? Andy On Wed, Dec 10, 2008 at 4:07 PM, Chris Marisic <[EMAIL PROTECTED]>wrote: > > What exactly goes in ".WithC

[fluent-nhib] Re: Conventions GetPrimaryKeyName

2008-12-11 Thread Andrew Stewart
x27;ve mentioned from an automapping perspective type does make alot more sense. Sorry, I'd rather not make that change until someone from the manual side says it's ok, would anyone like to shed some light on this. Cheers Andy On Thu, Dec 11, 2008 at 11:41 AM, Andrew Stewart < [EMAIL PRO

[fluent-nhib] Re: Patch for auto map - detect , recognize many to many

2008-12-11 Thread Andrew Stewart
Hi James Spotted it, in the one to many parts it just check if your using the Iesi.Collections. types and if so sets the type appropriately. Cheers Andy On Thu, Dec 11, 2008 at 10:55 AM, Andrew Stewart < [EMAIL PROTECTED]> wrote: > I was just thinking the same thing, I havent look

[fluent-nhib] Re: Conventions GetPrimaryKeyName

2008-12-11 Thread Andrew Stewart
Hi Sorry mate, I've been off ill, so will make the change as soon as I've caught up on everything. Cheers Andy On Wed, Dec 10, 2008 at 4:08 PM, Chris Marisic <[EMAIL PROTECTED]>wrote: > > Did you decide what the resolution to this is? > > > -- = I-nnovate Software - Bespoke S

[fluent-nhib] Re: Patch for auto map - detect , recognize many to many

2008-12-11 Thread Andrew Stewart
I was just thinking the same thing, I havent looked at the code yet, but I'm guessing that there's been a convention added to the convention class. Andy On Thu, Dec 11, 2008 at 10:27 AM, Chris <[EMAIL PROTECTED]> wrote: > > How does this patch work, for example, with the code given below I > get

[fluent-nhib] Re: Proper Component auto mapping syntax

2008-12-09 Thread Andrew Stewart
Hi Chris That is currently the only way to map components using Auto Mapping, we really need to look into a better way of doing this but I'm currently working on inheritance support which is complex, once that's done component mapping is on my to-do list. However we're always grateful to receive pa

[fluent-nhib] Re: My attempt to rewrite fluent nhibernate

2008-12-09 Thread Andrew Stewart
HI James Ok I think I understand, basically you want to create a model that matches the nhibernate xml and then serialize that to the xml in 1 big hit. A very grand plan indeed. Maybe I'm missing the point at the moment, but bear with me. As far as I can see this is our current situation, the flue

[fluent-nhib] Re: Conventions GetPrimaryKeyName

2008-12-09 Thread Andrew Stewart
Hi Chris Hmm maybe your right maybe it should be the type I think I implemented the Primary Key shortly after the foreignkey conventions which would explain why it's off property as a property address, could potential have the Id "AddressId" or "Address_id" or "fk_addressId", I'm sure you get the i

[fluent-nhib] Re: How to set lazy-load by default

2008-12-08 Thread Andrew Stewart
"true" in > Template.xml. I think it is a simplest and direct solution. Would you > please set the default-lazy to "true" in the template? because it's > the nhibernate default behavior. I tried to change the code, but it > failed to pass the unit test, because

[fluent-nhib] Re: AutoPersistenceModel table name convention

2008-12-08 Thread Andrew Stewart
Talk about good timing, I was just checking out the codebase when I saw this email and since it was an easy change if you get out the latest version of the code and rebuild you can do it using the code as you've shown below. Andy On Mon, Dec 8, 2008 at 2:08 PM, <[EMAIL PROTECTED]> wrote: > > Is t

[fluent-nhib] Re: How to set lazy-load by default

2008-12-02 Thread Andrew Stewart
Hi Karen You should be able to get to this from the Convention class, and setting the many to one convention. SOmething similar to below, I think there is a strongly typed version of this in the latest version though. var model = new FluentNHibernate.PersistenceModel(); mod

[fluent-nhib] Re: AutoMapping and joined subclasses

2008-11-13 Thread Andrew Stewart
ClassMap you can use for this > purpose, but it sounds like it isn't supported through the auto mapping yet. > > On Thu, Nov 13, 2008 at 9:09 AM, Andrew Stewart < > [EMAIL PROTECTED]> wrote: > >> Hi Julian >> What your talking about is actually part of the normal

[fluent-nhib] Re: AutoMapping and joined subclasses

2008-11-13 Thread Andrew Stewart
Hi Julian What your talking about is actually part of the normal fluent nhibernate mapping, Automap just generates the majority of the boring parts. Personally I just used the table per class route, as I couldn't find any other way of doing it - and I wasn't that bothered about it's exact implemen

[fluent-nhib] Re: AutoMapping

2008-10-31 Thread Andrew Stewart
Hi Nick Sorry for the delay must be the busiest week ever. Here we go, personally I tend to find my entities with a namespace. For example .Where(t => t.Namespace == "Program.Entities") The problem is I don't know your app layout enough to give you advice on how to find your entities. No for Ign

[fluent-nhib] Re: Getting to grips with AutoMap

2008-10-17 Thread Andrew Stewart
ap.TableName += "s") > ... > > for example (I realise that doesn't compile, because the generic type > param on Entity, and TableName has no setter :-( ) > > Are there examples of the WithConvention mechanism I can look at? > > Many thanks again >

[fluent-nhib] Re: Getting to grips with AutoMap

2008-10-16 Thread Andrew Stewart
> > Hi Pete, > Man that's a Big Email: Ok Here we go: 1.1 Is it possible to change the foreign key relationship names so > they're like FK_{tablename}_{FK_tablename} ? At the moment, these > keys are non-human-readable strings like FK76553BBAAD1ED7F4 (I guess > this is a hash?). I'm guessing

[fluent-nhib] Re: Automapping components

2008-10-06 Thread Andrew Stewart
er <[EMAIL PROTECTED]>wrote: > I'll dig deeper into it... but it's not easy > > > On Mon, Oct 6, 2008 at 11:20 AM, Andrew Stewart < > [EMAIL PROTECTED]> wrote: > >> Hello >> Righteo, Had a quick look over it and it seems to me that some form of >

[fluent-nhib] Re: Automapping components

2008-10-06 Thread Andrew Stewart
Hello Righteo, Had a quick look over it and it seems to me that some form of recursion over the AutoMapper.MergeMap class will probably be a good start. As you can probably see the following inheritence applies: AutoMap --> ClassMap --> ClassMapBase, ComponentPart --> ClassMapBase JoinedSubClass

[fluent-nhib] Re: Conventions

2008-10-06 Thread Andrew Stewart
Hi Paul And now the second one applied. Very Good Work! Andy On Tue, Sep 16, 2008 at 2:07 PM, Paul Batum <[EMAIL PROTECTED]> wrote: > > I love problems like this. Keep 'em coming :D > > On Tue, Sep 16, 2008 at 2:04 PM, Andrew Stewart > <[EMAIL PROTECTED]> wrot

[fluent-nhib] Re: Ayende on Fluent nHibernate - AutoMap

2008-10-06 Thread Andrew Stewart
Hi Paul First patch applied. Cheers Andy On Wed, Aug 27, 2008 at 11:21 PM, Paul Batum <[EMAIL PROTECTED]> wrote: > Yeah I wanted a few tests specifically for the method on InvocationHelper. > > > On Wed, Aug 27, 2008 at 9:57 PM, Andrew Stewart < > [EMAIL PROTECT

[fluent-nhib] Re: Automapping components

2008-10-06 Thread Andrew Stewart
o tidy up. I need to apply some patch's so I'll have a noise over the source and see if this is possible. Cheers Andy On Mon, Oct 6, 2008 at 9:15 AM, Andrew Stewart <[EMAIL PROTECTED] > wrote: > Hi Gabriel > This sound similar to the problem I'

[fluent-nhib] Re: Automapping components

2008-10-06 Thread Andrew Stewart
ype > Action> to be handled (auto-mapped). And there my problems > start... How can I "inject" or "auto-generate" this action part? > Any help is appreciated. > Note: I think this component stuff is really important since in a decent > domain model you will a

[fluent-nhib] Re: map same value object multiple times in an entity

2008-10-03 Thread Andrew Stewart
I think this is the same point, me and Gabriel where talking about in a previous post. Is this correct? Andy On Fri, Oct 3, 2008 at 3:47 PM, Paul Batum <[EMAIL PROTECTED]> wrote: > Maybe our automapping expert Andrew Stewart would like to help out Gabriel > here? (poke poke) > &g

[fluent-nhib] Re: Automapping components

2008-10-03 Thread Andrew Stewart
*.WithConvention(c => c.MapAsComponent = type => > IsValueObject(type))* > > where the function *IsValueObject(...) *is a user defined function... > > would this be possible? > > > On Thu, Oct 2, 2008 at 11:37 PM, Andrew Stewart < > [EMAIL PROTECTED]> wrote: &

[fluent-nhib] Re: Automapping components

2008-10-02 Thread Andrew Stewart
Hi Gabriel To be honest mate, no idea- as I've never actually done it with the normal fluent-nhibernate. However if fluent-nhibernate supports it then AutoMapper supports it. Basically AutoPersitenceModel will map out as much of your model as it can figure out by it self then it's down to you to p

[fluent-nhib] Re: Experimental change to NHibernate 2.0 Final

2008-09-23 Thread Andrew Stewart
Hi Guys, I believe it was mentioned recently on ayende's blog, that there is an unsupported back port of linq to nhibernate that runs on version 2. http://ayende.com/Blog/archive/2008/09/11/NHibernate-2.0-and-Linq.aspx Maybe worth looking further into that. Cheers Andy On Tue, Sep 23, 2008 at

[fluent-nhib] Re: Conventions

2008-09-16 Thread Andrew Stewart
changes in patch format > so you can see whats different and figure out where you want to go > next. > > Paul Batum > > On Fri, Sep 12, 2008 at 11:54 AM, Andrew Stewart > <[EMAIL PROTECTED]> wrote: > > Hi James > > If you take this out of the automapping loop,

[fluent-nhib] Re: Warnings in AutoMap

2008-09-15 Thread Andrew Stewart
Hi Chad These have now been removed. They where mainly unused variables that I'd introduced for consistency sake, and knowing that I'd need them eventually ;o). I've removed them for now and will reintroduce them when needed. Cheers Andy On Sat, Sep 13, 2008 at 8:30 PM, Andrew S

[fluent-nhib] Re: Warnings in AutoMap

2008-09-13 Thread Andrew Stewart
Hi Chad I very much doubt these are anything to worry about as I'm currently running with AutoMap in a production environment with no hassle. However as we all know warnings=BAD. So I'll look into it for you, I never spotted them or they wouldn't be there ;o) woops. Cheers Andy Note: I'm curren

[fluent-nhib] Re: Orphaned files?

2008-09-13 Thread Andrew Stewart
Hi Yeah delete them, I don't have visualsvn installed at home, so it's probably slipped the net that way. My Aplogies. Andy On Sat, Sep 13, 2008 at 4:55 PM, Chad Myers <[EMAIL PROTECTED]> wrote: > I found two files on the file system (in SVN), but not in the VS project: > > > > - FNH

[fluent-nhib] Re: Comparing Lambdas

2008-09-12 Thread Andrew Stewart
Yo >From my experience it can't be done, your better off using an inmemory replacement. Andy On Fri, Sep 12, 2008 at 9:19 PM, Lee <[EMAIL PROTECTED]> wrote: > > I am writing a test (TDD) for an MVP app. I want to test that the > presenter gets the proper values from the > view and passes them i

[fluent-nhib] Re: Conventions

2008-09-12 Thread Andrew Stewart
red into a list that all onetomany's use when writing > their output, rather than just ones for that exact type? > I need to spend some time getting my head around what you've been doing > with this automapping/conventions stuff. > > > On Fri, Sep 12, 2008 at 11:16 AM, Andr

[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

[fluent-nhib] Re: [RANT] VB9 Lambdas

2008-09-04 Thread Andrew Stewart
Lol First I thought, he must have that wrong - they can't be that ugly. *Quick Google* Nope, he's right they are that ugly. Andy On Thu, Sep 4, 2008 at 3:10 PM, James Gregory <[EMAIL PROTECTED]>wrote: > I'm surprised they're even in there at all. > > > On Thu, Sep 4, 2008 at 2:57 PM, Dru Selle

[fluent-nhib] Re: nhibernate criteria via expressions - part of Fluent NH, or core?

2008-09-04 Thread Andrew Stewart
Hi > We've said in the past that although this is called Fluent NHibernate, it > should eventually encompass everything needed to make working with > NHibernate easier. > I think the above says it all really, it would be nice if it was in real nhibernate but I'm not sure they'd except it since t

  1   2   >