[fluent-nhib] Re: hibernate-configuration examples

2012-06-06 Thread mwpowellhtx
Okay, on a hunch and recommendation what happens when I take that line out, now I am back to: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that

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

2014-08-29 Thread mwpowellhtx
Hello, I've read a post on SO http://stackoverflow.com/questions/13748919/fluent-nhibernate-map-list-of-abstract-class-with-table-per-concrete-class-uni, but I have a case where I don't have a list so much as a HasOne. One of my domain classes HasOne, but that one extends an abstract base

[fluent-nhib] How to comb non Identity Guid

2014-10-09 Thread mwpowellhtx
Hello, I've got an Attachments table I am dealing with. Originally the data was table-bound VARBINARY(MAX), and the row ids were (are) BIGINT, etc. The domain model, and related views and view models, are also, inexplicably, strongly coupled with the BIGINT (or C# long) Id property. There's

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

2014-10-09 Thread mwpowellhtx
On Thursday, October 9, 2014 3:01:58 PM UTC-5, mwpowellhtx wrote: Hello, I've got an Attachments table I am dealing with. Originally the data was table-bound VARBINARY(MAX), and the row ids were (are) BIGINT, etc. The domain model, and related views and view models, are also

[fluent-nhib] Re: Map Property Int LEngth

2014-11-01 Thread mwpowellhtx
On Friday, October 31, 2014 4:52:16 AM UTC-5, Gleb Chermennov wrote: How do you expect this to behave? Length is only applicable to text columns - you know, nvarchar or whatever - when you can say no longer than 100 characters. In case of integer, that just does not make sense. This

[fluent-nhib] Property set to null after save

2014-11-04 Thread mwpowellhtx
Hello, This might be more of an NH question. I start a new transient instance of a domain model with a Name set when I create it. So far so good. As soon as I call ISession.Save on the instance, the Name property is re-hydrated to null. The instance id is set as I would expect it to be, but

[fluent-nhib] Re: Property set to null after save

2014-11-04 Thread mwpowellhtx
On Tuesday, November 4, 2014 9:50:06 PM UTC-6, mwpowellhtx wrote: Hello, This might be more of an NH question. Big ole DUH. It is a domain issue... I start a new transient instance of a domain model with a Name set when I create it. So far so good. As soon as I call ISession.Save

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

2014-11-10 Thread mwpowellhtx
example that illustrates it I think: https://github.com/mwpowellhtx/fluent-nhibernate-examples See the bin/{Config}/FluentMappings folder for up to date mappings. I am consistently finding that the CollectionItem parent (Collection) Id column is mapped correctly, whether I include the column name

[fluent-nhib] How to map Ordered AsList Default Index

2014-11-11 Thread mwpowellhtx
Hello, How to map an Ordered List? however that gets done, AsList or otherwise? If AsList, what is the default Index column? Or I need to explicitly declare that? Thank you... Best regards, Michael Powell -- You received this message because you are subscribed to the Google Groups Fluent

[fluent-nhib] Re: How to map Ordered AsList Default Index

2014-11-11 Thread mwpowellhtx
On Tuesday, November 11, 2014 11:49:26 AM UTC-6, mwpowellhtx wrote: Hello, I've been trying this morning, and for whatever reason nhforge.org appears to be down, so I cannot look it up there. https://github.com/nhibernate/nhibernate-core How to map an Ordered List? however that gets done

Re: [fluent-nhib] In HasManyToMany association, How to set a primitive field in Child object that is different for each parent object?

2015-04-21 Thread mwpowellhtx
I concur. The technical term is impedance mismatch, with properties associated with the relationship. Happens more often than you think: i.e. Player membership on a team; contract terms might be captured on the membership. Best of luck! -- You received this message because you are subscribed

[fluent-nhib] Re: No persister for: NHibernate.Type.AnyType+ObjectTypeCacheEntry

2015-04-16 Thread mwpowellhtx
On Wednesday, April 15, 2015 at 6:41:34 PM UTC-4, brainbolt wrote: I'm accustomed to seeing No persister for: errors when I don't have a class map defined for one of my classes, but not for an internal NHibernate class. I'm the getting this exception when I attempt to access the Tasks 

Re: [fluent-nhib] HasOne zero or one

2015-07-14 Thread mwpowellhtx
Now I'm thinking that just possibly I've got the HasOne / References backwards. Foo may reference a bar (or not, i.e. nullable). When it does, however, bar must contain a foo (has one). It's a bit opposite the usual 1-* / *-1, but I believe that should work in this instance. Thank you! -- You

[fluent-nhib] Re: [BuildSessionFactory] Building session factory creates new instances

2016-02-13 Thread mwpowellhtx
Football.Migrator.exe!Football.Migrator.Program.PlanWork(System.Action workPlan) Line 39 + 0xe bytes C# Football.Migrator.exe!Football.Migrator.Program.Main(string[] args) Line 66 + 0x36 bytes C# [External Code] четверг, 11 февраля 2016 г., 17:44:15 UTC+3 пользователь mwpowellhtx > написал: >> >> Hello,

[fluent-nhib] Re: [BuildSessionFactory] Building session factory creates new instances

2016-02-13 Thread mwpowellhtx
On Saturday, February 13, 2016 at 11:14:26 AM UTC-5, mwpowellhtx wrote: > > > > On Friday, February 12, 2016 at 5:19:04 AM UTC-5, Gleb Chermennov wrote: >> >> Hello Michael, >> as far as I know, creating a session factory shouldn't instantiate any of >> yo

[fluent-nhib] Re: [BuildSessionFactory] Building session factory creates new instances

2016-02-13 Thread mwpowellhtx
On Saturday, February 13, 2016 at 11:30:24 AM UTC-5, mwpowellhtx wrote: > > > > On Saturday, February 13, 2016 at 11:14:26 AM UTC-5, mwpowellhtx wrote: >> >> >> >> On Friday, February 12, 2016 at 5:19:04 AM UTC-5, Gleb Chermennov wrote: >>> >&

[fluent-nhib] Re: [CommonAssemblyInfo] Missing

2016-02-20 Thread mwpowellhtx
Oh I see. I opened the solution directly. -- 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

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

2016-03-08 Thread mwpowellhtx
ent handler. http://stackoverflow.com/questions/14578113/extending-linq-to-nhibernate-with-custom-hql-generator Thoughts? > воскресенье, 6 марта 2016 г., 23:46:34 UTC+3 пользователь mwpowellhtx > написал: >> >> Hello, >> >> I've got a semi-rich domain model tha

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

2016-03-08 Thread mwpowellhtx
On Tuesday, March 8, 2016 at 11:03:14 AM UTC-5, mwpowellhtx wrote: > > > On Monday, March 7, 2016 at 4:53:16 AM UTC-5, Gleb Chermennov wrote: >> >> So I think you're getting NotSupportedException because NHibernate can't >> translate your method call to sql/hql.

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

2016-08-11 Thread mwpowellhtx
objects. I try to avoid casting anyways. I'd rather use a visitor pattern as it > maintains completeness. > Thank you. On Thu, Aug 11, 2016 at 1:33 PM, mwpowellhtx <mwpow...@gmail.com > > wrote: > >> >> >> On Thursday, August 11, 2016 at 7:23:35 AM UTC-4, Ra

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

2016-08-11 Thread mwpowellhtx
On Thursday, August 11, 2016 at 8:22:07 AM UTC-4, Oskar Berggren wrote: > > > > 2016-08-11 12:33 GMT+01:00 mwpowellhtx <mwpow...@gmail.com >: > >> >> >> On Thursday, August 11, 2016 at 7:23:35 AM UTC-4, Rasmoo wrote: >>> >>> That's ex

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

2016-08-11 Thread mwpowellhtx
On Wednesday, August 10, 2016 at 12:00:17 PM UTC-4, Brandon Perry wrote: > > > > On Aug 10, 2016, at 10:55 AM, Michael Powell > 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

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

2016-08-11 Thread mwpowellhtx
On Thursday, August 11, 2016 at 8:08:10 AM UTC-4, Oskar Berggren wrote: > > > > 2016-08-11 13:04 GMT+01:00 mwpowellhtx <mwpow...@gmail.com >: > >> >> >> On Thursday, August 11, 2016 at 7:59:46 AM UTC-4, Oskar Berggren wrote: >>> >>&

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

2016-08-11 Thread mwpowellhtx
On Thursday, August 11, 2016 at 7:59:46 AM UTC-4, Oskar Berggren wrote: > > > > 2016-08-11 11:47 GMT+01:00 mwpowellhtx <mwpow...@gmail.com >: > >> >> >> On Wednesday, August 10, 2016 at 1:20:15 PM UTC-4, Oskar Berggren wrote: >>> >>&g

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

2016-08-11 Thread mwpowellhtx
On Wednesday, August 10, 2016 at 1:20:15 PM UTC-4, Oskar Berggren wrote: > > You can put something like this in relevant base class: > > public TCastTarget As() > { > return (TCastTarget)this; > } > Do you understand what's going on with Proxying? You don't see it in your code, but what

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

2016-08-11 Thread mwpowellhtx
On Thursday, August 11, 2016 at 8:35:32 AM UTC-4, Oskar Berggren wrote: > > > > 2016-08-11 13:25 GMT+01:00 mwpowellhtx <mwpow...@gmail.com >: > >> >> >> On Thursday, August 11, 2016 at 8:05:04 AM UTC-4, Oskar Berggren wrote: >>> >>> &

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

2016-08-11 Thread mwpowellhtx
On Thursday, August 11, 2016 at 8:47:18 AM UTC-4, Oskar Berggren wrote: > > > > 2016-08-11 13:33 GMT+01:00 mwpowellhtx <mwpow...@gmail.com >: > >> >> >> On Thursday, August 11, 2016 at 8:22:07 AM UTC-4, Oskar Berggren wrote: >>> >>&

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

2016-08-11 Thread mwpowellhtx
On Thursday, August 11, 2016 at 8:05:04 AM UTC-4, Oskar Berggren wrote: > > > > 2016-08-11 12:59 GMT+01:00 Oskar Berggren <oskar.b...@gmail.com > >: > >> >> >> 2016-08-11 11:47 GMT+01:00 mwpowellhtx <mwpow...@gmail.com > >> : >> &

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

2016-08-11 Thread mwpowellhtx
it's > > cup.Juice.UnproxiedObject as AppleJuice > > > On Thu, Aug 11, 2016 at 12:47 PM, mwpowellhtx <mwpow...@gmail.com > > wrote: > >> >> >> On Wednesday, August 10, 2016 at 1:20:15 PM UTC-4, Oskar Berggren wrote: >>> >>> You can p

[fluent-nhib] Re: Problems with HasManyToMany and a IDictionary attributte

2016-08-25 Thread mwpowellhtx
On Wednesday, August 24, 2016 at 8:21:20 AM UTC-4, Ivan Ruiz de Eguilaz Sosoaga wrote: > > I have problems generating a new table by using HasManyToMany only When I > have a IDictonary as a source, for instance If I try it with an IList I do > not have any problem and I see how a new table is

[fluent-nhib] Re: Cascade All-Delete-Orphan with OneToOne

2016-11-29 Thread mwpowellhtx
On Monday, November 28, 2016 at 5:50:04 AM UTC-5, Edno Silva wrote: > > Hello everyone, > > The new version of NHibernate (4.1.0-CR1) has a new Cascade option in > OneToOne relationships: all-delete-orphan ( > https://nhibernate.jira.com/browse/NH-1262). > Could you please add this option to

[fluent-nhib] cam i map a shared interface to remove duplicated mapping?

2017-01-10 Thread mwpowellhtx
Off hand I do not think it's possible, even with the subclass mapping. Consider why due to single inheritance types, versus multiple implemented interfaces. This is because what you end up with are actually proxy instances managed by the session. When I have something like that I consider a

[fluent-nhib] Re: Mapping ID Guid on Oracle

2016-12-24 Thread mwpowellhtx
On Friday, December 23, 2016 at 7:22:44 AM UTC-5, Felipe Oriani wrote: > > Hi guys, > > We have a table on the database where we want to map the ID as Guid. Our > project should run over two databases, Sql Server and Oracle. For Sql > Server, we define the column type as *uniqueidentifier*

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

2018-02-28 Thread mwpowellhtx
On Tuesday, February 27, 2018 at 3:58:38 PM UTC-5, Alexander Zaytsev wrote: > > Hi Michael, > > 1. NHibernate has fixed assembly version numbers, they do change only when > minor/major version change: > > - All 4.0.x assemblies have 4.0.0.4000 assembly version number (4000 is a > rudimentary

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

2018-02-28 Thread mwpowellhtx
On Wednesday, February 28, 2018 at 8:25:23 AM UTC-5, mwpowellhtx wrote: > > > > On Tuesday, February 27, 2018 at 3:58:38 PM UTC-5, Alexander Zaytsev wrote: >> >> Hi Michael, >> >> 1. NHibernate has fixed assembly version numbers, they do change only

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

2018-02-28 Thread mwpowellhtx
On Tuesday, February 27, 2018 at 3:58:38 PM UTC-5, Alexander Zaytsev wrote: > > Hi Michael, > > 1. NHibernate has fixed assembly version numbers, they do change only when > minor/major version change: > > - All 4.0.x assemblies have 4.0.0.4000 assembly version number (4000 is a > rudimentary