Posts tagged C#
Finally! Entity Framework working in ...
Entity Framework was supposed to solve the problem of Linq to SQL, which requires endless hacks to make it work in n-tier world. Not only did Entity Framework solve none of the L2S problems, but also it made it even more difficult to use and hack it for n-tier scenarios. It’s somehow half way between a fully disconnected ORM and a fully conne [...]
C# with keyword equivalent
There’s no with keyword in C#, like Visual Basic.
So you end up writing code like this:
this.StatusProgressBar.IsIndeterminate = false;
this.StatusProgressBar.Visibility = Visibility.Visible;
this.StatusProgressBar.Minimum = 0;
this.StatusProgressBar.Maximum = 100;
this.StatusProgressBar.Value = percentage;
Here’s a work around [...]
ParallelWork: Feature rich multithrea...
ParallelWork is an open source free helper class that
lets you run multiple work in parallel threads, get success,
failure and progress update on the WPF UI thread, wait for work to
complete, abort all work (in case of shutdown), queue work to run
after certain time, chain parallel work one after another.
It’s more convenient than using [...]
Open Source WPF UML Design tool
<a title="PlantUML Editor free open source UML designer" href=
\"http://code.google.com/p/plantumleditor/\">PlantUmlEditor is my
new free open source UML designer project built using WPF and .NET
3.5. If you have used <a title=
\"Plantuml open source free UML generator\" href=
\"http://plantuml.sourceforge.net\">plantuml [...]
Do Unit Test and Integration Test fro...
You usually write unit test and integration test code separately
using different technologies. For example, for unit test, you use
some mocking framework like Moq to
do the mocking. For integration test, you do not use any mocking,
just some test classes that hits some service or facade to do
end-to-end integration test. However, sometimes yo [...]
Is your computer running slow, batter...
If your computer is running hot or battery running out quickly
then it is most likely due to some application or process consuming
high CPU or memory. If you keep running applications for a long
time, for example, Outlook, then it continues to grow in memory
consumption and does not free up memory efficiently. As a result,
your computer runs [...]
AspectF fluent way to put Aspects int...
Aspects are common features that you write every now and then in
different parts of your project. it can be some specific way of
handling exceptions in your code, or logging method calls, or
timing execution of methods, or retrying some methods and so on. If
you are not doing it using any Aspect Oriented Programming
framework, then you are re [...]