Life saver when it comes to NuGet and portable libraries

While putting together some NuGets for some portable class libraries I found my self a bit lost of what target string to use. One way to find some guidance is the use the NuGet Package explorer to build up the NuSpec, but I found another source, which felt like a real life saver. Have a look your self and note the NuGet target column in the table.

Read More

The release of v1.0.0 of MyCouch

MyCouch is the simple asynchronous CouchDb and Cloudant client for .Net – building on top of the asynchronous HTTP client and uses JSON.Net to provide flexible serialization behaviour. It is distributed via NuGet(CouchDb package, Cloudant package) and supports .Net4.0, .Net4.5 and Windows Store 8 & 8.1.

the simple asynchronous CouchDb and Cloudant client for .Net

The current API is the result of 363 days (on & off), 757 commits and 23 previous releases with feedback from users. From now on, focus will be on adding new features and build stuff around MyCouch, like the MyCouch.AspNetIdentity project.

Read More

Copy NuGets between projects in Visual Studio in seconds

Found my self putting up projects that were duplicates of other projects when it came to the NuGets that should be installed in the projects. There were no template and no “master” NuGet to install so every one needed to be added manually. But there’s of course a simpler way that takes seconds (if you deduct the time for downloading missing NuGets). Let me show you.

Read More

xUnit – dynamically skipping tests for different test-environments

While developing MyCouch, I need support for multiple test-environments targetting local CouchDb installs as well as for cloud services such as Cloudant. Each different test-environment supports different features/scenarios. E.g. When I execute my integration tests against Cloudant, I don't want to support creation and deletion of databases. This post will show you how I'm using xUnit's Skip property of the FactAttribute, to skip the execution of tests, dynamically determined by configuration.

Read More

C#, Custom Date and Time Format Strings – with semantics

When it comes to formatting dates and time strings, people seem to forget (I don't blame them) and mixes up stuff like M vs m; which one is months and which one is minutes? And how many characters was it to get abbreviation instead of month number? I took a few minutes, violated some principles and put together a simple fluent API with semantic meanings in the formating process. Now, it will not cover everything, but you will get the idea.

Read More

xUnit.Net – the life cycle of tests and testfixtures

Being used of NUnit and MSTest, xUnit (pre v2) comes with some slight differences. One that I initially had some troubles with when porting my tests, was the life cycle of tests and test fixtures. Most of the differences are very well documented at the xUnit CodePlex site. E.g. how xUnit makes use of a separate interface (IUseFixture<>) to mark a dependency on setup code for fixtures etc. How it also makes use of the constructors and Dispose methods of your test-classes and test-fixtures instead of relying on specific attributes that can be attached to arbitrary named methods. Now with regards taken to the life cycle, lets just do a simple test to see the call hierarchy of constructors, tests and disposal methods when using fixtures.

Read More

NoSQL and non explicit schemas does not free you from modelling

This will be a really short post and will be about the whole flexible schemas in NoSQL land and how easy it is to store data and let the design of it evolve by time. “You just throw some JSON in there and then start harvest the data with some nifty queries.” I’m saying, no you are not freed from not thinking about your data model, because the shape of it will need to vary depending on how you will consume the data. Will it be read or write intensive? What granularity do you need? How will your application consume the data?

Read More

Using MyCouch to store ASP.Net identity data in CouchDb or in the cloud using Cloudant

Recently I put out a simple NuGet package: MyCouch.AspNet.Identity, that lets you store ASP.Net identity data in CouchDb or in the cloud using Cloudant, instead of in a SQL Server using Entity framework. It’s about a three-five minute change and it is really easy. And to show you this, I have put together a small screencast as well as a small sample, which you can find in this article.
Read More

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: