Advanced Forum Search Results
-
Linq doesn't magically boost your performance. But it does improve maintenenbility a lot. You can write your code like this:
var resultList = lstA.Where(a => b.Any(b => b.A.Id == a.Id).ToList();
I sense your original code may have an unintentional behavior - a same instance of 'a' might be added multiple times because of ...
-
[quote user="MarkMonster"]Although it's called a Lmbda Expression I prefer the use of the name Anonymous Method. Because it's actually an inline method that is passed as an argument, think of it as a method pointer, which can be executed.
[/quote]
A lambda expression is different from a anonymous method in a way that the ...
-
1. It's actually not a problem with Silverlight. Actually Silverlight frees server(s) from composing UI tasks, which could increase server's capacity a lot. (But with that said, the most amazing achievement of the computer software industry is its
continuing cancellation of the steady and staggering gains made by the
computer ...
-
I usually use a different constructor for runtime and keep the default constructor simple:
public MyPage(object dummy) : this() {
// runtime initilization
}
-
I didn't use fileqube for a while and don't have the project showing the error right now. This is what I remembered:
1. Doing data binding with DataGrid. At least two columns bound to different property.
2. In one property changed event, modify the other property that is also bound to another column.
You are most likely having the null ...
-
As long as the compiler takes the source code, there is nothing wrong with your source control.
-
If your application is really simple like you described, you can give ADO.NET Data Service a try. You could have what you wanted in 10 minutes. But be careful, these 10-minute applications do nothing more than wasting time in real world.
-
You are welcome. But I don't see the reason for having both GUID and int as keys in database.
Anyway, if you really want to stick with int and you are using DLinq, it's actually easy to get the entity key been inserted - after submit changes, DLinq automatically copy these value back to the entity. So just use it in your code after ...
-
One thing good about GUID is that you don't have to hit the database to get the next value. So just create a new GUID when you create your entity and save/discard it later.
-
Use javascript to handle window.onbeforeunload event. This is where you can call a method in your silverlight application and return a string indicating if it is safe to close the browser. But remember one thing: closing browser is their "god given right".