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

2010-01-27 Thread epitka
Luckly, I had old code of FNH so I just added extensions to my project. On Jan 27, 2:55 pm, epitka wrote: > 1.0.0.593 does not have them. Oh man, that is no fun. > > On Jan 27, 2:40 pm, epitka wrote: > > > > > Is FluentNHibernate.Testing separate dll? R# is not

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

2010-01-27 Thread epitka
1.0.0.593 does not have them. Oh man, that is no fun. 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... > >

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

2010-01-27 Thread epitka
ng 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, b

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

2010-01-27 Thread epitka
I am porting project using older version of FNH to a new one, but all extension method for unit testing are gone ( ShouldNotBeNull, ShouldEqual etc.) Where are these extensions now, or are they gone? -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate"

[fluent-nhib] Re: PersistenceSpecification deep object graph testing

2009-12-31 Thread epitka
t; it natively. So build a model of A to B to C to D, persist, retrieve, and > then assert my assumptions as needed from A to D. > > But perhaps others have better ways of doing it. > > > > > > On Wed, Dec 30, 2009 at 9:29 AM, epitka wrote: > > I am wondering what

[fluent-nhib] Re: System.Security.SecurityException: That assembly does not allow partially trusted callers.

2009-12-31 Thread epitka
Ahhh, nevermind, downloads folder was mapped to network drive. Once I moved it locally, everything is fine On Dec 31, 7:49 am, epitka wrote: > Just downloaded source for github, unblocked and unzipped. Opened up > solution file, selected run all tests from resharper menu, and I get >

[fluent-nhib] System.Security.SecurityException: That assembly does not allow partially trusted callers.

2009-12-31 Thread epitka
Just downloaded source for github, unblocked and unzipped. Opened up solution file, selected run all tests from resharper menu, and I get the above exception on almost every single test. What's going on? -- You received this message because you are subscribed to the Google Groups "Fluent NHibern

[fluent-nhib] Re: Unit testing an inverse one-to-many

2009-12-30 Thread epitka
kList(x => x.MetaPackages, packages, (x,p)=> x.MetaPackages_Add(p)) .VerifyTheMappings(); On Dec 30, 1:26 pm, epitka wrote: > Where are these extension methods? > > On Dec 17, 3:20 pm, Paul Batum wrote: > > > > > Yeah I agree. > > > 2009/12/18 Alexander Groß &g

[fluent-nhib] Re: Unit testing an inverse one-to-many

2009-12-30 Thread epitka
Where are these extension methods? On Dec 17, 3:20 pm, Paul Batum wrote: > Yeah I agree. > > 2009/12/18 Alexander Groß > > > > > Peter, CheckComponentList did the trick, also without a custom comparer for > > the Artist class: > >http://xrl.in/4147 > > > Paul, I think we should rename the Persis

[fluent-nhib] PersistenceSpecification deep object graph testing

2009-12-30 Thread epitka
I am wondering what strategy others use in regards to testing deep object graphs. I am especially interested in testing one-to-many with non-nullable FK with cascade all-delete-orphan, but it applies to other types as well. For example if I have following: A<>--B<>--C<>--D how do you test map fo

[fluent-nhib] Does fluent have (internal working question)

2009-12-29 Thread epitka
I am working on a project of mine, having to do with NH, and I wonder, without having to look through the code of FNH, whether it has a some kind of a model that defines per each nhibernate tag or property 1. default value 2. whether it is optional or not. For example for many-to-one tag "fetch"

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

2009-12-29 Thread epitka
Ej stari, samo na engleskom. Kako je James skuzio da se radi o dokumentaciji je stvarno hvale vrijedno. @James: How did you figure out that he wants doumentation? I can read cyrilic, but how did you do that? On Dec 29, 9:28 am, James Gregory wrote: > English only, sorry. > > Docs are > athttp:

[fluent-nhib] PersistenceSpecification with StructureMap

2009-11-20 Thread epitka
I am trying to use PersistenceSpecification with StructureMap, but I am getting following error: NHibernate: select next_hi from hibernate_unique_key System.Data.SQLite.SQLiteException: Library used incorrectly No transactions active on this connection at System.Data.SQLite.SQLiteTransaction.IsVa

[fluent-nhib] Re: Verify Enumerable Property

2009-11-20 Thread epitka
Has this been brought back in the main branch? On Sep 23, 3:13 pm, Paul Batum wrote: > Great! I'll be sure to remind yourself and others to switch back to the > official trunk once all these changes have been brought in. > > > > On Wed, Sep 23, 2009 at 7:10 PM, Martin Nilsson wrote: > > Paul, >

[fluent-nhib] SingleConnectionSessionSourceForSQLiteInMemoryTesting with Schema

2009-10-27 Thread epitka
Is there a way to use SQLite and SingleConnectionSessionSourceForSQLiteInMemoryTesting when entity has defined schema like this? Schema("[myDatabase].[dbo]"); I get an error from SQLite that it is unknown database "myDatabase". If I configure DefaultSchema like this, I get the syntax error near

[fluent-nhib] Re: FluentNHibernate - ReadOnlyPropertyThroughCamelCaseField(Prefix.Underscore) does not work

2009-09-18 Thread epitka
Ok, "problem" is (if it can be called problem) in PersistenceSpecification. It works with PropertyInfo, no matter how it is mapped and requires setter on property. Not ideal, but one can create private setter to be able to test with PersistenceSpecification. On Sep 18, 5:12 am, epi

[fluent-nhib] FluentNHibernate - ReadOnlyPropertyThroughCamelCaseField(Prefix.Underscore) does not work

2009-09-18 Thread epitka
ropertyInfo.SetValue (Object obj, Object value, Object[] index) at FluentNHibernate.Testing.PersistenceSpecification1.ListValue1.SetValue (Ob ject target) in E:\Users\epitka\Documents\DEVELOPMENT\fluent- nhibernate\src\FluentNHibernate\Testing\PersistenceSpecification.cs: line 174 If if switch strat

[fluent-nhib] Thoughts on using structure vs class to map component

2009-06-17 Thread epitka
If one creates a structure instead of class to represent a "component", then it can be mapped using "Map" instead of "Component" syntax. It works for reads but I wonder if there are any concerns as far as updates are concerned, or anything else that might cause problems? --~--~-~--~~-

[fluent-nhib] Re: PersistenceSpecification CheckReference returning Proxy object

2009-04-01 Thread epitka
Maybe this can help you in some way, as I run into kinda similar problem http://forum.hibernate.org/viewtopic.php?t=992593&highlight=proxy+reference On Apr 1, 3:24 pm, jakescott wrote: > Hi Jon inheriting from the fluent Entity class does not solve the > problem out of the box. > > The problem

[fluent-nhib] Is there a way to specify "Loader" for the class?

2009-04-01 Thread epitka
Hi, Is there a way to specify this using NH ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@googlegroups.com To unsubscribe fr

[fluent-nhib] .CheckProperty does not work for fields?

2009-04-01 Thread epitka
Is this supposed to take in consideration that my property does not have a setter and is mapped to use field.lowercase-underscore strategy. If I have an attribute like this protected string _myAtt; public string MyAtt; { get { return _myAtt; } } should _spec.CheckProperty(x=> x.MyAtt, _myEnti

[fluent-nhib] Re: PersistenceSpecificationTester question

2009-04-01 Thread epitka
)).Return (_client.Id); _sessionSource = MockRepository.GenerateStub(); _sessionSource.Stub(ss => ss.CreateSession()).Return (_session); _spec = new PersistenceSpecification (_sessionSource); } On Mar 31, 1:39 pm, epitka wrote: > I looked at the code, an

[fluent-nhib] Re: Fluent NHibernate Configuration for Session Context

2009-03-31 Thread epitka
Did you try ExposeConfiguration like this ? _sessionFactory = Fluently .Configure(_cfg) .ExposeConfiguration(c=>c.SetNamingStrategy ( naming strategy class here) .SetProperty("thread_static"); > .Database >

[fluent-nhib] PersistenceSpecificationTester question

2009-03-31 Thread epitka
I looked at the code, and I don't see where are the mappings for 'Cat' coming from? Is it based on the convention. How would I load the mappings from different assembly using the same example? --~--~-~--~~~---~--~~ You received this message because you are subscr

[fluent-nhib] Re: Registering Interceptor via NH

2009-03-18 Thread epitka
more than the interceptor and it > doesn't feel as hacky as the interceptor did. > Here's an example of one event (there are about 20 of > them):http://www.codinginstinct.com/2008/04/nhibernate-20-events-and-listen... > > Jon > > On Wed, Mar 18, 2009 at 10

[fluent-nhib] Registering Interceptor via NH

2009-03-18 Thread epitka
Should this work? _sessionFactory = Fluently.Configure(Configuration) .Mappings(m => m.FluentMappings.AddFromAssembly(Assembly.Load("SR.Domain"))) .Mappings(m => m.HbmMappings.AddFromAssembly(Assembly.Load("SR.Domain")))

[fluent-nhib] Re: Composite Id with Components, is it possible?

2009-03-13 Thread epitka
typeof(FooCompositeID).AssemblyQualifiedName); > > On Fri, Mar 13, 2009 at 11:18 PM, epitka wrote: > > > I have to use them as it is a legacy db and it is a mes. > > Is this what you support, something like this? > > > > >         > >         >

[fluent-nhib] Re: Composite Id with Components, is it possible?

2009-03-13 Thread epitka
or > even better provide us with a patch. However, I would wholeheartedly > recommend you do not use composite-ids, always use surrogate keys if at all > possible. > > On Fri, Mar 13, 2009 at 9:55 PM, epitka wrote: > > > I need something like this > > >  UseCompo

[fluent-nhib] Re: Composite Id with Components, is it possible?

2009-03-13 Thread epitka
On Mar 13, 1:20 pm, James Gregory wrote: > Try: > > UseCompositeId()  .WithKeyProperty("xxx") >   .WithKeyProperty("yyy"); > > On Fri, Mar 13, 2009 at 6:14 PM, epitka wrote: > > > This is what I meant. > >http://nhforge.org/doc/nh/en/index.ht

[fluent-nhib] Error when mapping field

2009-03-13 Thread epitka
Hi, I am trying to map private field IList _accountType like this HasMany(x => x._accountType).Access.AsField(); but receiving an error {"Unable to cast object of type 'System.Reflection.RtFieldInfo' to type 'System.Reflection.PropertyInfo'."} --~--~-~--~~~---~--~--

[fluent-nhib] Re: Composite Id with Components, is it possible?

2009-03-13 Thread epitka
ar 13, 2009 at 2:32 PM, epitka wrote: > > > How do we map composite Id on components with fluent Nhibernate? Is it > > possible? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate&qu

[fluent-nhib] Re: Composite Id with Components, is it possible?

2009-03-13 Thread epitka
Fri, Mar 13, 2009 at 2:32 PM, epitka wrote: > > > How do we map composite Id on components with fluent Nhibernate? Is it > > possible? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Fluent NHib

[fluent-nhib] Composite Id with Components, is it possible?

2009-03-13 Thread epitka
How do we map composite Id on components with fluent Nhibernate? Is it possible? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@google

[fluent-nhib] Re: IdBag

2009-03-11 Thread epitka
Wrong group, thought I was in NH forum On Mar 10, 1:36 pm, epitka wrote: > Probably silly question, > but can IdBag be used for One-To-Many or is it only for Many-To-Many > situations --~--~-~--~~~---~--~~ You received this message because you are subs

[fluent-nhib] IdBag

2009-03-10 Thread epitka
Probably silly question, but can IdBag be used for One-To-Many or is it only for Many-To-Many situations --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to

[fluent-nhib] Re: Where is idbag?

2009-03-10 Thread epitka
. 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 mapping? > > > -- > >

[fluent-nhib] Where is idbag?

2009-03-09 Thread epitka
Hi, Does FNH support idbag mapping? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@googlegroups.com To unsubscribe from this group, se

[fluent-nhib] Re: how to load nhibernate.config

2009-03-01 Thread epitka
Could also fnh pick it up? On Mar 1, 2:02 pm, James Gregory wrote: > You shouldn't need to do the HbmMappings part, as that will be picked up > from your config. > > On Sun, Mar 1, 2009 at 7:55 PM, epitka wrote: > > > That is the thing, NHibernateHelper is exter

[fluent-nhib] Re: how to load nhibernate.config

2009-03-01 Thread epitka
ent mappings. You > should just be able to use the code from your first email combined with the > second. > > var cfg = LoadDefaultConfiguration(); > > Fluently.Configure(cfg) >   .Mappings(m => >     m.AddFromAssemblyOf()) >   .BuildSessionFactory(); > > On

[fluent-nhib] Re: how to load nhibernate.config

2009-03-01 Thread epitka
x27;re trying to achieve. Can you explain > your setup a little better? > > On Sun, Mar 1, 2009 at 5:44 PM, epitka wrote: > > > Here is the full stack > > > [MappingException: An association from the table dnnSphere_Package > > refers to an un

[fluent-nhib] Re: how to load nhibernate.config

2009-03-01 Thread epitka
rgs e) +37 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute () +68 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75 On Mar 1, 11:31 am, James Gregory wrote: > That should work. Have you tested your config without Fluent? > > O

[fluent-nhib] Re: how to load nhibernate.config

2009-03-01 Thread epitka
ory wrote: > That should work. Have you tested your config without Fluent? > > On 3/1/09, epitka wrote: > > > > > Ok I can do it like this > > >   Configuration cfg = LoadDefaultConfiguration(); > >                 _sessionFactory = Fluently.Configure >

[fluent-nhib] Re: how to load nhibernate.config

2009-03-01 Thread epitka
Ok I can do it like this Configuration cfg = LoadDefaultConfiguration(); _sessionFactory = Fluently.Configure (cfg).BuildSessionFactory(); but how do I add mapping assembly. Any ideas? nhibernate.config has mapping tag but is does not seem to work. On Mar 1, 8:38 am, epitka

[fluent-nhib] Re: Map private property

2009-03-01 Thread epitka
Sorry, did not look at that one close enough. On Mar 1, 9:28 am, James Gregory wrote: > Did you read the wiki? How is yours any clearer than the Reveal example? > > On 3/1/09, epitka wrote: > > > > > I don't like any of these but this might work. What do you th

[fluent-nhib] how to load nhibernate.config

2009-03-01 Thread epitka
hi, Is there a way to load nhibernate.config directly through fluent? I have a common assembly that I use for all NH project that deals with sessions, config etc. Now I would like to be able to map entities using Fluent but configure using normal nhibernate.config. Why? Well for one in this line f

[fluent-nhib] Re: Map private property

2009-03-01 Thread epitka
t have to do this additional stuff, and spotting the problem should not be hard. On Mar 1, 1:48 am, "Erik Lundby" wrote: > http://wiki.fluentnhibernate.org/show/StandardMappingPrivateProperties > > -Original Message- > From: fluent-nhibernate@googlegroups.com > &

[fluent-nhib] Map private property

2009-02-28 Thread epitka
Hi, Is there a way to map a private property through fluent? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@googlegroups.com To unsubs

[fluent-nhib] Re: Custom collections

2009-01-19 Thread epitka
??? nobody knows ??? On Jan 16, 2:21 pm, epitka wrote: > Does fluent support mapping custom collections. In NH it looks like > this. > > >                 table="Production.ProductReview" cascade="all-delete-orphan" >

[fluent-nhib] Custom collections

2009-01-16 Thread epitka
Does fluent support mapping custom collections. In NH it looks like this. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Fluent