In memory database in .net [closed]

In-Memory Database (IMDB) is a memory-resident relational database that eliminates disk access by storing and manipulating data in main memory. An IMDB usually features a strict memory-based architecture and direct data manipulation. A bit related stuff’s : Good in-memory database for .net/PowerShell? SQLite in-memory database backup in .NET Alternative to the TimesTen in memory database … Read more

Fast and Best Producer/consumer queue technique BlockingCollection vs concurrent Queue [closed]

BlockingCollection and ConcurrentQueue are there for precisely this reason. I doubt that you’ll find anything better, or simpler to use. The parallel extensions team know their stuff 🙂 Just a quick check on versions though – you’re definitely using .NET 4, not just C# 4? (For example, you could be using Visual Studio 2010 and … Read more

How do I use Optional Parameters in an ASP.NET MVC Controller

The string should be ok, as it’ll get passed as an empty string. For int, make it nullable: public ActionResult Index(string Country, int? Regions) Also, you’ll note I capitalized it in the same was as your querystring. Edit Note that ASP.NET now allows you to define default parameters. E.g.: public ActionResult Index(string Country, int Regions … Read more

static readonly field initializer vs static constructor initialization

There is one subtle difference between these two, which can be seen in the IL code – putting an explicit static constructor tells the C# compiler not to mark the type as beforefieldinit. The beforefieldinit affects when the type initializer is run and knowing about this is useful when writing lazy singletons in C#, for … Read more

LINQ selection by type of an object

You can use the OfType Linq method for that: var ofTypeA = collection.OfType<A>(); Regarding your unwillingness to loop throught the collection, you should keep in mind that Linq does not do magic tricks; I didn’t check the implementation of OfType, but I would be surprised not to find a loop or iterator in there.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)