Re: [fluent-nhib] Active Writer

2011-05-29 Thread Mohamed Meligy
ll. I have also wrote an example that uses it here: http://gurustop.net/blog/2011/04/17/nh-nhibernate-mapping-jose-romaniello-ef-conform-domain-using-fnh-fluentnhibernate/ *Mohamed Meligy *Readify | Senior Developer M:+61 451 835006 | W: readify.net [image: Description: Description: D

Re: [fluent-nhib] Re: FluentNHibernate nuget package dependencies

2011-05-13 Thread Mohamed Meligy
ne it in app.config, Nuget Add-BindingRedirect feature didn't detect it as it recognized version only from folder I assume), then had to reubild the project more than once, and it worked. *Mohamed Meligy *Readify | Senior Developer M:+61 451 835006 | W: readify.net [image: Description: Descriptio

Re: [fluent-nhib] Re: FluentNHibernate nuget package dependencies

2011-05-13 Thread Mohamed Meligy
not to mention transition to use NH new mappings internally, which is not a small change. So, I would vote it's not worth investing in it for just a short time before it changes. *Mohamed Meligy *Readify | Senior Developer M:+61 451 835006 | W: readify.net [image: Description: Description: Desc

Re: [fluent-nhib] Re: Problem Mapping .NET ISet With Automapping

2011-05-13 Thread Mohamed Meligy
Thanks a lot, James. Worked great in my sample app. Waiting for the Nuget update to include it in the post. Thanks again, Regards, *Mohamed Meligy *Readify | Senior Developer M:+61 451 835006 | W: readify.net [image: Description: Description: Description: Description: rss_16]<h

Re: [fluent-nhib] Re: Problem Mapping .NET ISet With Automapping

2011-05-12 Thread Mohamed Meligy
LOL, nice workaround. Reminds me with IHtmlString in MVC :) -but when you don't even have as much control :D Will try it tonight and tell you. If it works nicely, will there be a possibility to have that on Nuget? Like 1.11? (I know, acting greedy) Thanks a lot James, Regards. *Mo

Re: [fluent-nhib] Re: Native Primary Key Convention w/Sequence

2011-05-11 Thread Mohamed Meligy
the chance to look at it. Thanks a lot, *Mohamed Meligy *Readify | Senior Developer M:+61 451 835006 | W: readify.net [image: Description: Description: Description: Description: rss_16]<http://gurustop.net> [image: Description: Description: Description: Description: cid:image003.png@01

Re: [fluent-nhib] Re: Problem Mapping .NET ISet With Automapping

2011-05-01 Thread Mohamed Meligy
te it once native ISet is supported. Thanks, Regards, *Mohamed Meligy *Readify | Senior Developer M:+61 451 835006 | W: readify.net [image: Description: Description: Description: Description: rss_16]<http://gurustop.net> [image: Description: Description: Description: Description: cid:image

Re: [fluent-nhib] Re: Problem Mapping .NET ISet With Automapping

2011-05-01 Thread Mohamed Meligy
hmm.. It's OK. I guess I'll keep the example the way it is for now. Glad to know you'll handle it soon anyway. Thanks a lot, James, you rock :) Regards, *Mohamed Meligy *Readify | Senior Developer M:+61 451 835006 | W: readify.net [image: Description: Description: Descripti

Re: [fluent-nhib] Re: Problem Mapping .NET ISet With Automapping

2011-05-01 Thread Mohamed Meligy
PossibleValues = {"Pocon", "Medio", "Sopa"} } } }; s.Save(product); tx.Commit(); } Any ideas? Thanks again. *Mohamed Meligy *Readify | Senior Developer M:+61 451 835006 | W: readify.net [image: Description: Des

Re: [fluent-nhib] Re: Problem Mapping .NET ISet With Automapping

2011-05-01 Thread Mohamed Meligy
et, collection); }; } set { _valueSetter = value; } } Last, when you are saying it should work with HashSet used for declarations instead of .NET ISet, do you try it using the same collection factory I refered to in previous message or some other mean?

Re: [fluent-nhib] Re: Is Fluent NHibernate dead?

2011-04-30 Thread Mohamed Meligy
even more work to do to make the internal part pluggable to have two versions of it, XML based, and NH 3.2 mappings based. *Mohamed Meligy *Readify | Senior Developer M:+61 451 835006 | W: readify.net [image: Description: Description: Description: Description: rss_16]<http://gurustop.net

Re: [fluent-nhib] Re: Automapping Read Only Properties

2011-04-29 Thread Mohamed Meligy
eted the sample and put on http://gurustop.net/blog/2011/04/17/nh-nhibernate-mapping-jose-romaniello-ef-conform-domain-using-fnh-fluentnhibernate/<http://bit.ly/jt0BbN> Thanks a lot, Regards, *Mohamed Meligy *Readify | Senior Developer M:+61 451 835006 | W: readify.net [image: Des

[fluent-nhib] Problem Mapping .NET ISet With Automapping

2011-04-29 Thread Mohamed Meligy
e I'm not really sure I should mess with this part. Any ideas/fixes? Thanks a lot. Regards, *Mohamed Meligy *Readify | Senior Developer M:+61 451 835006 | W: readify.net [image: Description: Description: Description: Description: rss_16]<http://gurustop.net> [image: Description: Descrip

Re: [fluent-nhib] Mapping Problem

2011-04-29 Thread Mohamed Meligy
I'm using Gmail and the conversation starts with yout "Looks like my post was too trivial to make the cut?" part for me too. Didn't even receive the original question! So, yeah, +1, seems a problem with the mailing itself. *Mohamed Meligy *Readify | Senior Developer

[fluent-nhib] Automapping Read Only Properties

2011-04-07 Thread Mohamed Meligy
to our solution I tried what I wrote here on the sample automapping project in FluentNHibernate source. I tried , both "Master" and "1.x" branches.after replacing the NHibernate references with the NHibernate 3.1 DLLs in the FluentnNHibernate source folder "Tools\N

Re: [fluent-nhib] Automapping, change collection type from Bag to Set

2011-03-21 Thread Mohamed Meligy
Try this and see if it'll get picked up by FluentNHibernate or not ... http://nhforge.org/blogs/nhibernate/archive/2011/03/15/using-lt-set-gt-in-mappings-without-iesi-collections-net-4.aspx *Mohamed Meligy *Readify | Senior Developer M:+61 451 835006 | W: readify.net [image: Descri

Re: [fluent-nhib] No persister for:

2011-03-06 Thread Mohamed Meligy
It could be your mapping configuration. Did you try to change the assembly in the mapping configuration to something like typeof(ProductMap).Assembly and see if it works? *Mohamed Meligy *Readify | Senior Developer M:+61 451 835006 | W: readify.net [image: Description: Description

Re: [fluent-nhib] Re: GostBuster

2010-09-22 Thread Mohamed Meligy
I think it's either something related to the fact it's a date like maybe you need to provide a default value that is database friendly or something like that), or maybe the value is nullable in DB and not in model (you know these kinds of mismatches). *Mohamed Meligy *Readify | Senior

Re: [fluent-nhib] Enumerations in one-to-many relationships

2010-06-09 Thread Mohamed Meligy
Oops, forgive my stupidity. I have both NH group and FNH group going to the same label/folder in my email. Anyway, did you try just to use HasMany (Maybe mixing with AsBag()) ? -- Mohamed Meligy Senior Developer (Microsoft Technologies - Technical Delivery) Injazat Data Systems P.O. Box: 8230 Abu

Re: [fluent-nhib] Enumerations in one-to-many relationships

2010-06-09 Thread Mohamed Meligy
Does something like this work for you? http://www.methodicmadness.com/2010/01/nhibernate-mapping-generic-list-of-enum.html -- Mohamed Meligy Senior Developer (Microsoft Technologies - Technical Delivery) Injazat Data Systems P.O. Box: 8230 Abu Dhabi, UAE. Direct: +971 2 4045385 Mobile: +971

Re: [fluent-nhib] Re: Fluent NHibernate fetching view without unique identifier

2010-06-01 Thread Mohamed Meligy
Would it work to set all columns as composite key? -- Mohamed Meligy Senior Developer (Microsoft Technologies - Technical Delivery) Injazat Data Systems P.O. Box: 8230 Abu Dhabi, UAE. Direct: +971 2 4045385 Mobile: +971 50 2623624, +971 55 2017 621 E-mail: eng.mel...@gmail.com Weblog: http

Re: [fluent-nhib] Re: Lazy Loading Support for lazy="extra" and lazy="no-proxy" ?

2010-05-25 Thread Mohamed Meligy
Yeah, checked it in the tests yesterday. Thanks a lot all :) -- Mohamed Meligy Senior Developer (Microsoft Technologies - Technical Delivery) Injazat Data Systems P.O. Box: 8230 Abu Dhabi, UAE. Direct: +971 2 4045385 Mobile: +971 50 2623624, +971 55 2017 621 E-mail: eng.mel...@gmail.com

Re: [fluent-nhib] Re: Lazy Loading Support for lazy="extra" and lazy="no-proxy" ?

2010-05-18 Thread Mohamed Meligy
Any soon plan to support lazy="no-proxy"? -- Mohamed Meligy Senior Developer, Team Lead Backup (.Net Technologies - TDG - Applications) Injazat Data Systems P.O. Box: 8230 Abu Dhabi, UAE. Phone: +971 2 6992700 Direct: +971 2 4045385 Mobile: +971 50 2623624, +971 55 2017 621 E-mai

Re: [fluent-nhib] Re: Lazy Loading Support for lazy="extra" and lazy="no-proxy" ?

2010-05-08 Thread Mohamed Meligy
Thanks a lot. -- Mohamed Meligy Senior Developer, Team Lead Backup (.Net Technologies - TDG - Applications) Injazat Data Systems P.O. Box: 8230 Abu Dhabi, UAE. Phone: +971 2 6992700 Direct: +971 2 4045385 Mobile: +971 50 2623624, +971 55 2017 621 E-mail: eng.mel...@gmail.com Weblog: http

[fluent-nhib] Re: Lazy Loading Support for lazy="extra" and lazy="no-proxy" ?

2010-05-06 Thread Mohamed Meligy
Any update? -- Mohamed Meligy Senior Developer, Team Lead Backup (.Net Technologies - TDG - Applications) Injazat Data Systems P.O. Box: 8230 Abu Dhabi, UAE. Phone: +971 2 6992700 Direct: +971 2 4045385 Mobile: +971 50 2623624, +971 55 2017 621 E-mail: eng.mel...@gmail.com Weblog: http

[fluent-nhib] Lazy Loading Support for lazy="extra" and lazy="no-proxy" ?

2010-05-04 Thread Mohamed Meligy
I haven't been using FNH for sometime now, last I did it did not yet have support for setting collections lazy=extra (only Boolean). I also just read a while ago about setting lazy="no-proxy" feature for many-to-one etc.. I think this already supported in FNH, right? Thank you. --

Re: [fluent-nhib] Mapping Generic Types

2009-12-29 Thread Mohamed Meligy
I think it'll be easier to have inherited classes like ItemTComment : Comment etc.. Regards, -- Mohamed Meligy Senior Developer, Team Lead Backup (.Net Technologies - TDG - Applications) Injazat Data Systems P.O. Box: 8230 Abu Dhabi, UAE. Phone: +971 2 6992700 Direct: +971 2 4045385 M

Re: [fluent-nhib] Re: SQLite default config ProxyFactoryFactory

2009-12-28 Thread Mohamed Meligy
the general feel of the FNH API. Regards, -- Mohamed Meligy Senior Developer, Team Lead Backup (.Net Technologies - TDG - Applications) Injazat Data Systems P.O. Box: 8230 Abu Dhabi, UAE. Phone: +971 2 6992700 Direct: +971 2 4045385 Mobile: +971 50 2623624, +971 55 2017 621 E-mail: eng.mel

[fluent-nhib] Re: Unable to Git-Clone Fluent NHibernate Source Code

2009-12-19 Thread Mohamed Meligy
ders, so I cannot Git Sync later). Can somebody please send me a copy of his repository as-is? Thank you very much. Regards, -- Mohamed Meligy Senior Developer, Team Lead Backup (.Net Technologies - TDG - Applications) Injazat Data Systems P.O. Box: 8230 Abu Dhabi, UAE. Phone: +971 2 6992

[fluent-nhib] Unable to Git-Clone Fluent NHibernate Source Code

2009-12-18 Thread Mohamed Meligy
_125a5e6362126fd0&zw] Any ideas? Anyone else experiencing this? Regards, -- Mohamed Meligy Senior Developer, Team Lead Backup (.Net Technologies - TDG - Applications) Injazat Data Systems P.O. Box: 8230 Abu Dhabi, UAE. Phone: +971 2 6992700 Direct: +971 2 4045385 Mobile: +971 50 2623

[fluent-nhib] Weird override problem with Fluent NHibernate and .NET 4 (via StackOverflow)

2009-12-17 Thread Mohamed Meligy
7;t figure out where. Link to source: > labs.developerfusion.co.uk/SourceViewer/…<http://labs.developerfusion.co.uk/SourceViewer/browse.aspx?assembly=SSCLI&namespace=System&type=Exception> > I am not the involved in the question and haven't tried it myself under .NET 4.0, but thought

Re: [fluent-nhib] Many-To-One Relation: Set Foreign Key value without loading related Object

2009-11-19 Thread Mohamed Meligy
: In your code you pass selected value, which is a string, while the key of Category would usually be an int (or Guid(. Was that just or the sake of the example -code-on-the-fly or it can be done and NH will do the type conversion? Regards, -- Mohamed Meligy Senior Developer, Team Lead Ba

Re: [fluent-nhib] Mapping Aggregated Values from related table?

2009-11-18 Thread Mohamed Meligy
Thanks a lot Asbjørn. That's what I did actually. Did you notice my last email in this thread? Regards, -- Mohamed Meligy Senior Developer, Team Lead Backup (.Net Technologies) – Applications Delivery - TDG Injazat Data Systems P.O. Box: 8230 Abu Dhabi, UAE. Phone: +971 2 6992700 D

[fluent-nhib] Re: map an enum to int value

2009-11-09 Thread Mohamed Meligy
So, I can just use something like: Map( x=> x.MyEnumProperty); Or use the Map(x => x.MyEnumProperty).CustomType(typeof(EnumStringType)); Or something else ? Thank you. Regards, -- Mohamed Meligy Senior Developer, Team Lead Backup (.Net Technologies) – Applications Delivery - TDG I

[fluent-nhib] Many-To-One Relation: Set Foreign Key value without loading related Object

2009-11-08 Thread Mohamed Meligy
ery much. Regards, -- Mohamed Meligy Senior Developer, Team Lead Backup (.Net Technologies) – Applications Delivery - TDG Injazat Data Systems P.O. Box: 8230 Abu Dhabi, UAE. Phone: +971 2 6992700 Direct: +971 2 4045385 Mobile: +971 50 2623624, +971 55 2017 621 E-mail: eng.mel...@gmai

[fluent-nhib] Re: map an enum to int value

2009-11-08 Thread Mohamed Meligy
. how would that be mapped ? Regards, -- Mohamed Meligy Senior Developer, Team Lead Backup (.Net Technologies) – Applications Delivery - TDG Injazat Data Systems P.O. Box: 8230 Abu Dhabi, UAE. Phone: +971 2 6992700 Direct: +971 2 4045385 Mobile: +971 50 2623624, +971 55 2017 621 E

[fluent-nhib] Re: API documentation?

2009-11-03 Thread Mohamed Meligy
I think the beginning comes from adding XML documentation on new/edited methods, then it'll be easy later to generate HMTL docs fro there. Regards, -- Mohamed Meligy Information Analyst (.Net Technologies) – Applications Delivery - TDG Injazat Data Systems P.O. Box: 8230 Abu Dhabi, UAE.

[fluent-nhib] Re: AsSet Convention

2009-11-01 Thread Mohamed Meligy
Regards, -- Mohamed Meligy Information Analyst (.Net Technologies) – Applications Delivery - TDG Injazat Data Systems P.O. Box: 8230 Abu Dhabi, UAE. Phone: +971 2 6992700 Direct: +971 2 4045385 Mobile: +971 50 2623624, +971 55 2017 621 E-mail: eng.mel...@gmail.com Weblog: http://weblogs.asp.

[fluent-nhib] Re: PersistenceSpecification + GUID

2009-10-29 Thread Mohamed Meligy
hmm.. I told you I'm a beginner, but, all the guidence I see in NH related articles, etc.. is to use Guid as PK (vs. using Identty Columns), not to avoid using it! Anyway, glad to know you're managing your way aroudn it, so, am I trying :). Regards, -- Mohamed Meligy Information Ana

[fluent-nhib] Re: Mapping Aggregated Values from related table?

2009-10-28 Thread Mohamed Meligy
leUserLikes Where ArticleUserLikes.Type = 0 AND ArticleUserLikes.Article_Id = Article_Id) )"); The reason I'm using "1" and "0" above is that, as per my understanding, the formula is part of SQL statement, and I'm using MS SQL as DB, where boolean is bit (0/1).

[fluent-nhib] Mapping Aggregated Values from related table?

2009-10-28 Thread Mohamed Meligy
ike: SELECT COUNT(Like) FROM ArticleUserLikes WHERE Article_Id = 1 AND Like = TRUE And *TotalDislikes *for Article with Id = 1 is soemthing like: SELECT COUNT(Like) FROM ArticleUserLikes WHERE Article_Id = 1 AND Like = FALSE *How can I map TotalLikes and TotalDislikes ?* Regards, -- Moham

[fluent-nhib] Re: PersistenceSpecification + GUID

2009-10-27 Thread Mohamed Meligy
Hey, Sorry for posibly very late reply. Trying to learn with you myself. *Did you try Guid.NewGuid() instead?* Regards, -- Mohamed Meligy Information Analyst (.Net Technologies) – Applications Delivery - TDG Injazat Data Systems P.O. Box: 8230 Abu Dhabi, UAE. Phone: +971 2 6992700 Direct

[fluent-nhib] Re: Representing Reference by Reference Property and FK property in code

2009-10-27 Thread Mohamed Meligy
does NOT load the entire myEntity.RelatedEntity ?? That will so great if true really! If true, does it apply to Properties of *CompositeId* ? even if those Properties are *KeyReference*s? (does it chain?? Thanks a lot. Regards, -- Mohamed Meligy Information Analyst (.Net Technologies

[fluent-nhib] Re: Representing Reference by Reference Property and FK property in code

2009-10-27 Thread Mohamed Meligy
Ds to select the right drop down menu item and when the form is posted back to save the editing I just want to assign the value in this dropdown??? (Well, this is not the only scenario I have but to demonstrate). Regards, -- Mohamed Meligy Information Analyst (.Net Technologies) – Applica

[fluent-nhib] Representing Reference by Reference Property and FK property in code

2009-10-27 Thread Mohamed Meligy
ause, in my scenario, I expect to need ONLY the ID of the other entity withough needing to load it at all. Can I do that? Thank you. Regards, -- Mohamed Meligy Information Analyst (.Net Technologies) – Applications Delivery - TDG Injazat Data Systems P.O. Box: 8230 Abu Dhabi, UAE. Phone: +971 2 6

[fluent-nhib] API documentation?

2009-10-27 Thread Mohamed Meligy
; > . > unfortunately the API documentation<http://fluentnhibernate.org/Api/index.htm>URL ( http://fluentnhibernate.org/Api/index.htm) returns a 404 Page Not Found result. Is there another URL? Does this API documentation exist at all? Thanks a lot. Regards, -- Mohamed Meligy Informa

[fluent-nhib] Re: Setting "Cascade" strategy on CompositeId().KeyReference(...)

2009-10-24 Thread Mohamed Meligy
on column versionning (haven't got that part fully yet). I think some of you might be interested in the reasonning around it: http://groups.google.com/group/nhusers/browse_thread/thread/eccf8c23c44b6a58 Thank you very much for your help. Regards, -- Mohamed Meligy Information Analyst (.N

[fluent-nhib] Re: Setting "Cascade" strategy on CompositeId().KeyReference(...)

2009-10-24 Thread Mohamed Meligy
So, do you suggest some workaround or so? Regards, -- Mohamed Meligy Information Analyst (.Net Technologies) – Applications Delivery - TDG Injazat Data Systems P.O. Box: 8230 Abu Dhabi, UAE. Phone: +971 2 6992700 Direct: +971 2 4045385 Mobile: +971 50 2623624 E-mail: eng.mel...@gmail.com

[fluent-nhib] Re: Fluent Nhibernate Mapping - Best way to map many to many reference table

2009-10-20 Thread Mohamed Meligy
this is the case, how do I cascade Order or Product in the mapping? Givin that CompositeID().KeyReference() does NOT seem to provide Cascade property. How can I achieve that still? Regards, -- Mohamed Meligy Information Analyst (.Net Technologies) – Applications Delivery - TDG Injazat Data S

[fluent-nhib] Re: Fluent Nhibernate Mapping - Best way to map many to many reference table

2009-10-20 Thread Mohamed Meligy
So you think I should NOT create those as composite key parts and create them as non-key references? Please proide small code sample if I'm not getting it right. Thanks a lot. Regards, -- Mohamed Meligy Information Analyst (.Net Technologies) – Applications Delivery - TDG Injazat Data Sy

[fluent-nhib] Re: Fluent Nhibernate Mapping - Best way to map many to many reference table

2009-10-19 Thread Mohamed Meligy
ty > > > Products > > - > > ID [Primary Key] > > Name Assuming "OrderItem" is treated as a separate entity. For an OrderItem there will be a composite ID consisting of 2 Key References (Order, Product). *What if -for some reason- I want to cas

[fluent-nhib] Setting "Cascade" strategy on CompositeId().KeyReference(...)

2009-10-19 Thread Mohamed Meligy
age" without modeling middle tables, but it sounded ugly to duplicate something that already exists ("Document"). I know that was too much talk, so, again, my main question is: *If I map this Reference using "CompositeId" function of ClassMap "CompositeId().KeyRefe