RE: [fluent-nhib] not-null property references a null or transient value while testing bi-directional mapping

2011-05-14 Thread Michael Powell
In my experience with this type thing, take a look at what objects are persisted or not persisted. It sounds like you are trying to persist the goal, which is plausibly transient (?) while the match has already been persisted (?). I would persist the match with a newly added goal and see what

[fluent-nhib] To flush or not to flush

2011-11-08 Thread Michael Powell
Hello, I've got an NHibernate performance optimization question. I believe what I am seeing has to do with SaveOrUpdate() latency, but I'm not 100% sure of it. What's going on is this: I've got a data service which job it is to factory create a bunch of data for test and/or production

[fluent-nhib] hibernate-configuration examples

2012-06-06 Thread Michael Powell
Hello, I am refreshing my memory, I an fluently configuring my connection string and mappings, however, I would like to capture database configuration in the hibernate-configuration section. For my solution architecture, I am referencing FluentNHibernate sourced from NuGet packages. This is fine

[fluent-nhib] Re: Mandatory (?) ProxyGenerator configuration?

2012-06-07 Thread Michael Powell
Here is the error(s) that I am getting: assumption: remember, I am adding the references from NuGet-gotten packages. I can add Castle.Core, but I'm not sure that's the right one to be getting either. {Unable to load type 'NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle'

[fluent-nhib] What's the proxyfactory low down?

2012-06-07 Thread Michael Powell
Need a general idea, what's the proxyfactory low down? As regards latest FNH? And latest NH that FNH incorporates? Do we need a proxyfactory or don't we? Is there a default one we can use if we take the configuration line out? Where/how do we obtain Castle and/or LinFu if we want to evaluate one

[fluent-nhib] Re: What's the proxyfactory low down?

2012-06-07 Thread Michael Powell
wrote: Since NH 3.2 there is a built in proxy generator which is used unless you explicitly tell if otherwise in the configuration. /Oskar 2012/6/7 Michael Powell mwpowell...@gmail.com: Need a general idea, what's the proxyfactory low down? As regards latest FNH? And latest NH

[fluent-nhib] Complex database partitioning with FNH

2012-07-02 Thread Michael Powell
Hello, I'm looking at NH as one plausible upgrade path to address some performance and memory issues we've had with our application as of late as one radical option from what we currently do, which is basically heavy weight domain objects: including both database parts and so on. We've got an

[fluent-nhib] [IDictionary] how to map it fluently

2014-08-11 Thread Michael Powell
FluentNHibernate 1.4.0.0, NHibernate 3.3.1.4000, .NET 4.5.x. Thank you... Best regards, Michael Powell -- You received this message because you are subscribed to the Google Groups Fluent NHibernate group. To unsubscribe from this group and stop receiving emails from it, send an email to fluent

[fluent-nhib] [references conventions] How to override default convention

2014-08-16 Thread Michael Powell
versions, .NET, etc. Thank you... Best regards, Michael Powell -- You received this message because you are subscribed to the Google Groups Fluent NHibernate group. To unsubscribe from this group and stop receiving emails from it, send an email to fluent-nhibernate+unsubscr...@googlegroups.com

Re: [fluent-nhib] Re: HasOne table-per-hierarchy abstract base

2014-08-30 Thread Michael Powell
On Sat, Aug 30, 2014 at 6:37 AM, Gleb Chermennov thebitteren...@gmail.com wrote: I see your point. Can you post your code - classes, mappings and Fluent configuration - somewhere on the web (like gist/github) or just email them to me in case your project isn't opensource? I'll investigate.

Re: [fluent-nhib] Re: HasOne table-per-hierarchy abstract base

2014-08-30 Thread Michael Powell
On Sat, Aug 30, 2014 at 7:30 AM, Michael Powell mwpowell...@gmail.com wrote: On Sat, Aug 30, 2014 at 6:37 AM, Gleb Chermennov thebitteren...@gmail.com wrote: I see your point. Can you post your code - classes, mappings and Fluent configuration - somewhere on the web (like gist/github) or just

[fluent-nhib] Normalizing the self-parent/child relationship

2014-09-06 Thread Michael Powell
of that. Best regards, Michael Powell -- You received this message because you are subscribed to the Google Groups Fluent NHibernate group. To unsubscribe from this group and stop receiving emails from it, send an email to fluent-nhibernate+unsubscr...@googlegroups.com. To post to this group

Re: [fluent-nhib] Re: How to comb non Identity Guid

2014-10-12 Thread Michael Powell
On Sun, Oct 12, 2014 at 7:10 AM, Oskar Berggren oskar.bergg...@gmail.com wrote: I'm not quite sure what's going on, but yeah if you just want to have the db-generated GUID available in the model, Generated seems like a reasonable idea. Well, the crux of it is, I can't simply swap a Guid for a

[fluent-nhib] [ForeignKeyConvention] odd generic corner case: property null

2014-11-08 Thread Michael Powell
instead. That is unless there's something else I can override in the convention to flag this being the case. Thank you... Best regards, Michael Powell -- You received this message because you are subscribed to the Google Groups Fluent NHibernate group. To unsubscribe from this group and stop

[fluent-nhib] Re: [ForeignKeyConvention] odd generic corner case: property null

2014-11-08 Thread Michael Powell
On Sun, Nov 9, 2014 at 12:27 AM, Michael Powell mwpowell...@gmail.com wrote: Hello, I've managed to build up a series of Collection/CollectionItem containers, whose Items themselves host another domain model, something like CollectionItemPayload type thing. For the most part I've been

[fluent-nhib] Re: [ForeignKeyConvention] odd generic corner case: property null

2014-11-09 Thread Michael Powell
On Sun, Nov 9, 2014 at 1:10 AM, Michael Powell mwpowell...@gmail.com wrote: On Sun, Nov 9, 2014 at 12:27 AM, Michael Powell mwpowell...@gmail.com wrote: Hello, I've managed to build up a series of Collection/CollectionItem containers, whose Items themselves host another domain model

[fluent-nhib] How to join completely separate models

2015-06-27 Thread Michael Powell
to discriminate an Id based on Type, something like a C/C++ union might do? Best regards, Michael Powell -- You received this message because you are subscribed to the Google Groups Fluent NHibernate group. To unsubscribe from this group and stop receiving emails from it, send an email

[fluent-nhib] Inheritance hierarchy gremlins

2015-05-28 Thread Michael Powell
believe, for that to make any sense whatsoever. I've tried following the examples to no avail. I'm sure when the AHA moment occurs, it will be obvious. I am using VS22013 Update 4 + FNH 1.4.0.0 + NH 3.3.4.4000 + targeting .NET 4.5 Best regards, Michael Powell -- You received this message

[fluent-nhib] Re: Inheritance hierarchy gremlins

2015-05-28 Thread Michael Powell
On Thu, May 28, 2015 at 8:43 PM, Michael Powell mwpowell...@gmail.com wrote: Hello, I'm sure this has been asked a dozen times or more, but I am having a devil of a time persuading FNH to behave with my table-per-subclass inheritance hierarchy strategy. Ah! Nevermind, turns out I was pretty

[fluent-nhib] HasOne zero or one

2015-07-13 Thread Michael Powell
not be anything referencing the base table? Thanks in advance for clarification... Best regards, Michael Powell -- You received this message because you are subscribed to the Google Groups Fluent NHibernate group. To unsubscribe from this group and stop receiving emails from it, send an email

[fluent-nhib] Re: Potential bug in ComponentMap

2015-07-15 Thread Michael Powell
On Wed, Jul 15, 2015 at 3:22 PM, Michael Powell mwpowell...@gmail.com wrote: Hello, I am trying to map custom type, for which I've got a working IUserType implementation. The user type works fine in an ordinary mapping. Now I am using the same approach in a ComponentMap, yet I am experiencing

[fluent-nhib] Potential bug in ComponentMap

2015-07-15 Thread Michael Powell
is that somehow what I am trying to do isn't quite supported in a ComponentMap, but I could be wrong. I assure you, for ClassMap, EnumerationUserType is working just fine, but not, it seems, for ComponentMap. Best regards, Michael Powell -- You received this message because you are subscribed to the Google

[fluent-nhib] Re: Potential bug in ComponentMap

2015-07-15 Thread Michael Powell
On Wed, Jul 15, 2015 at 3:25 PM, Michael Powell mwpowell...@gmail.com wrote: On Wed, Jul 15, 2015 at 3:22 PM, Michael Powell mwpowell...@gmail.com wrote: Hello, I am trying to map custom type, for which I've got a working IUserType implementation. The user type works fine in an ordinary

[fluent-nhib] Re: Potential bug in ComponentMap

2015-07-15 Thread Michael Powell
On Wed, Jul 15, 2015 at 3:35 PM, Michael Powell mwpowell...@gmail.com wrote: On Wed, Jul 15, 2015 at 3:25 PM, Michael Powell mwpowell...@gmail.com wrote: On Wed, Jul 15, 2015 at 3:22 PM, Michael Powell mwpowell...@gmail.com wrote: Hello, Did some fact checking, I've got Fluent 1.4 installed

[fluent-nhib] Re: Potential bug in ComponentMap

2015-07-15 Thread Michael Powell
On Wed, Jul 15, 2015 at 3:22 PM, Michael Powell mwpowell...@gmail.com wrote: Hello, I am trying to map custom type, for which I've got a working IUserType implementation. The user type works fine in an ordinary mapping. Now I am using the same approach in a ComponentMap, yet I am experiencing

[fluent-nhib] Re: Potential bug in ComponentMap

2015-07-15 Thread Michael Powell
() at FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory() in c:\work\coding\fluentNhibernate\src\FluentNHibernate\Cfg\FluentConfiguration.cs:line 230 InnerException: On Wed, Jul 15, 2015 at 4:43 PM, Michael Powell mwpowell...@gmail.com wrote: On Wed, Jul 15, 2015 at 3:35 PM, Michael Powell

[fluent-nhib] Reference discriminated (base) class

2015-07-08 Thread Michael Powell
wonder what I can do to get past this. I bright idea may occur to me once I send this, but in the meantime... Any ideas? Thank you... Best regards, Michael Powell -- You received this message because you are subscribed to the Google Groups Fluent NHibernate group. To unsubscribe from this group

[fluent-nhib] Re: Reference discriminated (base) class

2015-07-08 Thread Michael Powell
On Wed, Jul 8, 2015 at 5:27 PM, Michael Powell mwpowell...@gmail.com wrote: Hello, With a couple of exceptions, I am mapping my classes as TPC (table per class). I now want to document some statistics throughout the model, but I don't want to repeat myself where the stats tables

[fluent-nhib] Re: Reference discriminated (base) class

2015-07-08 Thread Michael Powell
On Wed, Jul 8, 2015 at 6:22 PM, Michael Powell mwpowell...@gmail.com wrote: On Wed, Jul 8, 2015 at 5:27 PM, Michael Powell mwpowell...@gmail.com wrote: Hello, With a couple of exceptions, I am mapping my classes as TPC (table per class). I now want to document some statistics throughout

[fluent-nhib] Re: Reference discriminated (base) class

2015-07-08 Thread Michael Powell
On Wed, Jul 8, 2015 at 8:33 PM, Michael Powell mwpowell...@gmail.com wrote: On Wed, Jul 8, 2015 at 6:22 PM, Michael Powell mwpowell...@gmail.com wrote: On Wed, Jul 8, 2015 at 5:27 PM, Michael Powell mwpowell...@gmail.com wrote: Hello, With a couple of exceptions, I am mapping my classes

[fluent-nhib] Multiple child references to parent

2016-01-06 Thread Michael Powell
DeleteOrphan(); I don't know if the Husband/Wife relationships are automatically figured, or I need to further constraint in a .Where(), not even sure how I would do that in Fluent-isms? It's one thing there is a "simple" parent/child collection relationship going on, but how is this ha

[fluent-nhib] Re: Multiple child references to parent

2016-01-06 Thread Michael Powell
On Wed, Jan 6, 2016 at 10:45 AM, Michael Powell <mwpowell...@gmail.com> wrote: > Hello, > > I've got a situation where I'd like to reference some children from > the parent, but the children can reference potentially multiple > parents. That's by design. > > Allow me t

[fluent-nhib] [metavalue] Single table multiple parent tables

2015-12-31 Thread Michael Powell
return part.AddMetaValue(typeof (TClass), typeof (TClass).Name); Thoughts? Insights? Thank you, Michael Powell -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To unsubscribe from this group and stop receiving emails from it, send an

[fluent-nhib] Re: [metavalue] Single table multiple parent tables

2015-12-31 Thread Michael Powell
On Thu, Dec 31, 2015 at 4:56 PM, Michael Powell <mwpowell...@gmail.com> wrote: > On Thu, Dec 31, 2015 at 3:31 PM, Michael Powell <mwpowell...@gmail.com> wrote: >> On Thu, Dec 31, 2015 at 3:30 PM, Michael Powell <mwpowell...@gmail.com> >> wrote: >>> On Th

[fluent-nhib] Re: [SubclassMap] Association from the table X refers to an unmapped (sub)class

2016-02-10 Thread Michael Powell
On Wed, Feb 10, 2016 at 5:35 PM, Michael Powell <mwpowell...@gmail.com> wrote: > Hello, > > I am finding a strange error. I've double checked and I am 99% sure > that I've got the "missing" table referenced. I got past this one. Turns out I was not referencing one of

[fluent-nhib] [SubclassMap] Association from the table X refers to an unmapped (sub)class

2016-02-10 Thread Michael Powell
Hello, I am finding a strange error. I've double checked and I am 99% sure that I've got the "missing" table referenced. An association from the table Commissions refers to an unmapped class: Football.Models.FootballUser >From CommissionMap: References(x => x.Commissioner, "CommissionerId")

[fluent-nhib] [BuildSessionFactory] Creating new instances of objects?

2016-02-11 Thread Michael Powell
args) Line 66 + 0x36 bytes C# [External Code] Suggestions? Thank you. Regards, Michael Powell -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To unsubscribe from this group and stop receiving emails from it, send an emai

[fluent-nhib] [CommonAssemblyInfo] Missing

2016-02-13 Thread Michael Powell
CommonAssemblyInfo.cs is missing. -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To unsubscribe from this group and stop receiving emails from it, send an email to fluent-nhibernate+unsubscr...@googlegroups.com. To post to this group,

[fluent-nhib] Multiple subclasses: No persister for:

2016-02-27 Thread Michael Powell
from BMap,if that's what it takes, but might like to preserve the B mapping at the same time, if possible. Any suggestions? Regards, Michael Powell -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To unsubscribe from this grou

[fluent-nhib] Re: Multiple subclasses: No persister for:

2016-02-27 Thread Michael Powell
On Sat, Feb 27, 2016 at 6:28 PM, Michael Powell <mwpowell...@gmail.com> wrote: > Hello, > > I have a situation something like this: > > // Yes, A is abstract > abstract class A {} > > // B is not abstract, could inquire about B's > class B : A {} > > //

[fluent-nhib] Re: Multiple subclasses: No persister for:

2016-02-27 Thread Michael Powell
On Sat, Feb 27, 2016 at 6:33 PM, Michael Powell <mwpowell...@gmail.com> wrote: > On Sat, Feb 27, 2016 at 6:28 PM, Michael Powell <mwpowell...@gmail.com> wrote: >> Hello, >> >> I have a situation something like this: Well, I figured out one part of what was going o

[fluent-nhib] ReferencesAny interfaces

2016-03-15 Thread Michael Powell
get).FullName); .EntityTypeColumn(...) .EntityIdentifierColumnAndType(...) .Cascade.None(); Does this work, or does the Container need to be a concrete ("polymorphic") type? Thank you... Regards, Michael Powell -- You received this message because you are subscribed to the

[fluent-nhib] [VisitMethodCallExpression] calling model methods from hql

2016-03-06 Thread Michael Powell
, and therefore feel more natural, to the model. Thank you... Regards, Michael Powell -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To unsubscribe from this group and stop receiving emails from it, send an email to fluent-nhibernat

[fluent-nhib] How to handle ASP.NET MVC asynchronous requests

2016-05-18 Thread Michael Powell
, responsive web sites, ASP.NET, MVC, etc. Eventually, I suspect I should be able to do something like this on the client side (JavaScript/jQuery): $.when(ajax1(), ajax2(), ..., ajaxn()).done(response1, response2, ..., responsen); Any suggestions, pointers, thanks in advance! Regards, Michael

[fluent-nhib] Mapped components are nullable or not?

2016-05-08 Thread Michael Powell
in d:\Source\Kingdom Software\FootballSimulator\Working\src\Football.Data.NHibernate\Repository\NHibernateRepository.cs:line 129 InnerException: Thanks, Michael Powell -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To unsubs

[fluent-nhib] Re: [Proxy] Class hierarchy casting issue

2016-08-10 Thread Michael Powell
On Wed, Aug 10, 2016 at 11:55 AM, Michael Powell <mwpowell...@gmail.com> wrote: > Hello, > > I have a use case where I'd like to cast an abstract base class to a > child class in order to verify one of the child class properties. In my joining table mapping, in this case the

[fluent-nhib] [Proxy] Class hierarchy casting issue

2016-08-10 Thread Michael Powell
ommended workaround? Do I need to do some other form(s) of casting, or have some event handlers connecting with ISession bits? Thanks! Regards, Michael Powell -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To unsubscribe f

[fluent-nhib] Re: [user type] User Type Deep Copy (was: [user type] VARBINARY mapping)

2016-07-11 Thread Michael Powell
On Sat, Jul 9, 2016 at 9:43 PM, Michael Powell <mwpowell...@gmail.com> wrote: > On Fri, Jul 8, 2016 at 5:08 PM, Michael Powell <mwpowell...@gmail.com> wrote: >> Hello, >> >> I've got a custom user type which maps to a VARBINARY. I am working on >> t

[fluent-nhib] [user type] VARBINARY mapping

2016-07-08 Thread Michael Powell
throughout, or at least have a solid understanding when/where/why those conversions are necessary. Thank you! Regards, Michael Powell -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To unsubscribe from this group and stop receiv

[fluent-nhib] Re: [user type] VARBINARY mapping

2016-07-09 Thread Michael Powell
On Fri, Jul 8, 2016 at 5:08 PM, Michael Powell <mwpowell...@gmail.com> wrote: > Hello, > > I've got a custom user type which maps to a VARBINARY. I am working on > the domain side of things for the moment, resolving MSB concerns for > consistency throughout. Now I am ready

[fluent-nhib] "Versioned" records

2016-08-16 Thread Michael Powell
object can be assigned to historic entities, and I should be able to see the most recent version. Perhaps Version isn't the right approach, but I'm trying to find some clarification on just what exactly Version potentially buys me. Regards, Michael Powell -- You received this message because you are

[fluent-nhib] How to load from exposed hbm files versus assemblies

2016-08-20 Thread Michael Powell
details to file. Maybe that's a better approach than to depend upon the FileInfo for dates that are somehow broken. Environment: Windows 7 64-bit SP1 Targeting .NET Framework 4.5 (database migrations), 4.6 (ASP.NET MVC) Anyone have any thoughts on this? Regards, Michael Powell -- You received

[fluent-nhib] Unexpected row count deleting already-triggered base class table row

2016-09-04 Thread Michael Powell
the fluent mappings signaling deletion activities. Thanks! Thank you... Regards, Michael Powell -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To unsubscribe from this group and stop receiving emails from it, send an email to fluent

[fluent-nhib] Re: Unexpected row count deleting already-triggered base class table row

2016-09-04 Thread Michael Powell
On Sun, Sep 4, 2016 at 5:57 PM, Michael Powell <mwpowell...@gmail.com> wrote: > Hello, > > I've got a table per class domain model with a hierarchy going on. > What I am finding is that the error: "Batch update returned unexpected > row count from update; actual

[fluent-nhib] Re: ReferencesAny not rehydrating

2016-09-16 Thread Michael Powell
On Fri, Sep 16, 2016 at 6:23 PM, Michael Powell <mwpowell...@gmail.com> wrote: > Hello, > > I've got a situation where I have a "Log" or "Journal" object, that > may ReferencesAny host model, for Journaling purposes. > > Data is saving okay to the da

Re: [fluent-nhib] Re: Broken assembly 4.1.0.4000 reference

2018-02-28 Thread Michael Powell
On Wed, Feb 28, 2018 at 1:35 PM, Michael Powell <mwpowell...@gmail.com> wrote: > What I'm saying is that any strong name reference effectively BREAKS > the migration path. That's not an NHibernate thing but a Fluent thing. > The migration path from an NHibernate POV is establishe

Re: [fluent-nhib] Re: Broken assembly 4.1.0.4000 reference

2018-02-28 Thread Michael Powell
ght >> have been migrating to 2.1? >> >>> 2. FluentNHibernate 2.0.3 was compiled against NHibernate 4.0.x and was >>> not recompiled again. >>> 3. Because NHibernate has a signed strong name, you would need to have a >>> binding redirect in p

[fluent-nhib] Re: Broken assembly 4.1.0.4000 reference

2018-02-27 Thread Michael Powell
gistration, IEnumerable`1 parameters) at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters) InnerException: On Tue, Feb 27, 2018 at 3:08 PM, Michael Powell <mwpowell...@gmail.com> wrote: > Hello, > > I have what I t

[fluent-nhib] Re: Broken assembly 4.1.0.4000 reference

2018-02-27 Thread Michael Powell
I wonder if this is a similar AppDomain issue as compared to this? https://stackoverflow.com/questions/48641137/filenotfoundexception-for-cefsharp-when-running-xunit-test On Tue, Feb 27, 2018 at 3:27 PM, Michael Powell <mwpowell...@gmail.com> wrote: > I am receiving the following

[fluent-nhib] Re: Broken assembly 4.1.0.4000 reference

2018-02-27 Thread Michael Powell
, at this point. Thoughts? Best, Michael Powell -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To unsubscribe from this group and stop receiving emails from it, send an email to fluent-nhibernate+unsubscr...@googlegroups.co

[fluent-nhib] Re: Broken assembly 4.1.0.4000 reference

2018-02-27 Thread Michael Powell
NuGet version. Thoughts? On Tue, Feb 27, 2018 at 4:02 PM, Michael Powell <mwpowell...@gmail.com> wrote: > I wonder if this is a similar AppDomain issue as compared to this? > > https://stackoverflow.com/questions/48641137/filenotfoundexception-for-cefsharp-when-running-xunit-test >