DotNetKick.com is an open-source project. Please report any bugs and let us know your great suggestions. Currently running svn revision 620 (rss)

Kick Spy!, Kick Zeitgeist and Kick Widgets

sirrocco Subscribe to this feed
sirrocco
Profile Kicked Submitted Comments Tags Friends Kicked By Friends Submitted By Friends


Comments:

no source code :(
posted by sirrocco sirrocco 7 months, 13 days ago

I have in fact posted it :) , and yes, there is the Expression Trees thingy in the title , but i felt the accent was on LinqToSql vs NH . And I am really liking NH :P.
Can you tell ? ;)
posted by sirrocco sirrocco 7 months, 26 days ago

To me , that has almost NOTHING to do with NHibernate.
I mean sure, strongly typed. But you can't compare that LinqToSql to NHibernate .
You can compare the ToSql part with NHibernate and say : it produces better querys(or not) and compare mapping styles and what you can do with them.

There already is a project LinqToNhibernate. Then you will have type safety.
posted by sirrocco sirrocco 7 months, 26 days ago

hmm . .indeed it is.... however none of them seems like will make the front page :(
posted by sirrocco sirrocco 7 months, 29 days ago

Well, you might be familiar to the XmlWriter api, i'm not - so when looking at your code and his code, the wrapper looks nicer, and easyer to understand to me.

And i'm not really sure how many know the XmlWriter api so well that they would find hard to read and understand the fluent interface one.

Oh , and at the comment above when i kept writing "link" i meant "linq" :D
posted by sirrocco sirrocco 8 months, 29 days ago

damn ... we need some code tags :))
posted by sirrocco sirrocco 8 months, 29 days ago

Granted is not the fastest or most efficient way, but it does look good and it seems allot more maintainable to me. Maybe if you have a 10MB xml file you should use XmlWriter, otherwise I would go with this fluent interface.

In the blog comments someone said : why not use link ? - I'm pretty sure you can't do this with link :

XmlOutput xo = new XmlOutput()
.XmlDeclaration()
.Node("root").Within()
.Node("numbers").Within();

for (int i = 1; i <= 10; i++)
xo.Node("number").Attribute("value", i.ToString()).InnerText("This is the number: " + i);
posted by sirrocco sirrocco 8 months, 29 days ago

Nice copy paste from : Sams Teach Yourself Microsoft SQL Server 2005 Express in 24 Hours .
That's the way to go ;)
posted by sirrocco sirrocco 9 months, 4 days ago

I should look on the bright side then huh ? :D :D
posted by sirrocco sirrocco 9 months, 6 days ago

Are you trying to move MSDN over to your page ? otherwise what's the point ? ;(
posted by sirrocco sirrocco 9 months, 6 days ago

Other than that, there's no actual tests to show the big improvement.
Unless you're in a tight time critical loop - I'm thinking it's not worth it . :)
posted by sirrocco sirrocco 9 months, 20 days ago

yea ... suuuuuuure they did. ;)
posted by sirrocco sirrocco 9 months, 28 days ago

from what I can tell , the earlier submission was a benchmark, and this one is a recommendation.
If i'm mistaken please give the dotnetkicks link.
posted by sirrocco sirrocco 10 months, 24 days ago

That was actually very funny :D:D
posted by sirrocco sirrocco 11 months, 9 days ago

Very nice.=)
posted by sirrocco sirrocco 11 months, 11 days ago

while(true){} does the same thing in case you didn't know
posted by sirrocco sirrocco 1 year ago
 

Sponsored Link: www.carlist.ie

Search:

Ads via The Lounge