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

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


Comments:

This is actually working very well for me.
posted by zigamorph zigamorph 23 days, 2 hours ago

10 years, there is no way memcached is that old. I don't even think LiveJournal is that old. memcached is at most 5 years old.
posted by zigamorph zigamorph 29 days, 5 hours ago

Naz, that is correct it is because two different SQL queries are getting run. One for the Quote object and one for the Customer object, the Quote object is the top level so that is all that is being shown. If you are definitely using both and to cut down on round trips you want to consider the following.

from q in db.QuoteLINQs
where q.QuoteID.Equals(10)
select q, q.CustomerLINQ.CustomerID;

This will return both at the same time and should result in the SQL you are looking for. You can also use a feature in the DataContext that allows you to bind all references at the same time, however that is overkill for just getting back a CustomerID.
posted by zigamorph zigamorph 1 month, 26 days ago

It is not lying you have two different queries, one query that you displayed on the blog, and one related query that only gets called when you request the data. You examining the object with the debugger calls this data. Use SQL Profiler you will see two different queries. ;(
posted by zigamorph zigamorph 1 month, 26 days ago

actually the code should read

protected virtual void OnEvent (EventArgs e) {
}

There shouldn't be an override, because override is what is done to the virtual.
posted by zigamorph zigamorph 2 months, 24 days ago

I have had mixed problems with "localhost." mostly browsers get confused when you do "localhost.:50000" with ports.
posted by zigamorph zigamorph 3 months, 22 days ago

http://www.coderjournal.com/2008/03/securing-mvc-controller-actions/

There is actually a way to do this already built in to the .NET framework and operates in side the run time. It is called PrincipalPermissionAttribute.
posted by zigamorph zigamorph 3 months, 22 days ago

I just realized this has already been submitted. Please ignore.
posted by zigamorph zigamorph 4 months ago

Sounds like somebody is trying to justify their hackish code.
posted by zigamorph zigamorph 4 months, 7 days ago

What is the matter with the built in function to do this?

Uri url = new Uri("http://msdn2.microsoft.com/en-us/netframework/default.aspx");
string basePart = url.GetLeftPart(UriPartial.Authority);
posted by zigamorph zigamorph 4 months, 10 days ago

So I wonder if anybody should tell the developer that font tags shouldn't be used in your HTML anymore.
posted by zigamorph zigamorph 7 months, 20 days ago
 

Sponsored Link: www.carlist.ie

Search:

Ads via The Lounge