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
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
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
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
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
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
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
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
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
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?
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
--
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
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
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
_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
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
:
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
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
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
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
. 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
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.
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.
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
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).
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
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
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
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
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
;
> .
>
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
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
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
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
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
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
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
52 matches
Mail list logo