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
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...
>
>
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
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"
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
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
>
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
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
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
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
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"
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:
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
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,
>
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
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
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
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?
--~--~-~--~~-
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
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
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
)).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
Did you try ExposeConfiguration like this ?
_sessionFactory = Fluently
.Configure(_cfg)
.ExposeConfiguration(c=>c.SetNamingStrategy
( naming strategy class here)
.SetProperty("thread_static");
> .Database
>
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
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
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")))
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?
>
> >
> >
> >
>
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
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
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'."}
--~--~-~--~~~---~--~--
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
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
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
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
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
. 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?
>
> > --
> >
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
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
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
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
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
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
>
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
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
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
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
>
&
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
??? 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"
>
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
49 matches
Mail list logo