Popular Posts

Tuesday, February 11, 2014

How to add SplashScreen in WPF application

You can add SplashScreen easily of WPF application.

1-Create image that you want to use as a splash screen. 
You can use any image format like BMP, GIF, JPEG, PNG, or TIFF format.

2-Right click on project and click on existing Items then add image to project

3-In Solution Explorer, select the image.

4- In the Properties window of image, click the drop-down arrow for the Build Action property.
Select SplashScreen from the drop-down list.
5- Press F5 , SplashScreen will show before application start.

this is useful when application start-up is slow.

Monday, February 10, 2014

The version of SQL Server in use does not support datatype 'datetime2'

Sometime we face Sql server  version not support datetime2 errer in entity framework when we run application .


 I did a quick research and found out that datetime2 aka datetime2(7) is the problem and settingProviderManifestToken="2005" will solve the issue.


Solution:-

we have to change SQL server version in edmx file.right click on your edmx, open it with XML (Text) Editor and set ProviderManifestToken="2005"

will work proper.