SoftwareLounge

Coding and more…

Configuring Visual Studio 2012 to work with the Xamarin framework and PCLs

Xamarin Logo

If you want to do cross development using Xamarin and Visual studio, you need to install the Xamarin tools for Visual Studio. This will allow you to create solutions that target one or multiple platforms using the magic of MVVM (Model – View – ViewModel) and PCLs (Portable Class Libraries). The Visual Studio installer can [...]

,

An Object with the same key already exists in the ObjectStateManager, Entity Frawework

Entity Framework Icon

I have a generic repository which I use in my application to manage a large number of objects. I wrote the necessary unit tests to ensure that all methods work as expected and in isolation all was good. However, as soon as the application started implementing more complex operations, I came across the following error [...]

, ,

Add watermark to textbox and password textbox using HTML5

If you need to add a watermark on your textboxes and wish to avoid ugly Javascript implementations, HTML5 is your friend. Simply use the placeholder attribute with any input element of type text or password, as per the examples below:

This works like a treat! P.S This feature is only supported by the latest HTML5 [...]

, , ,

Resolving RDLC error: “The report definition is not valid” in Visual Studio 2012

I recently inherited a large number of RDLC reports from a colleague with the task to fix any issues before we go live. One of the first things I did was to write a quick “RDLC runner” console application to allow me to test the reports locally. The console program is a very simple .net 4.5 [...]

Removing the dbo_ prefix from imported tables in MS Access

When importing data from SQL Server using the ODBC connector in MS Access, your tables will end up prefixed with their corresponding schema. In most cases this will be the “dbo” schema. If you need to remove the prefix, these are the steps you need to follow: 1. Open your MS Access file (mdb or [...]

Previous Posts