Popular Posts
-
Kendo UI applying SUM in footer template kendo ui - KendoUI: Grid Summary values in Footer - Stack Overflow : ", footerTemplate:...
-
MVC grid example ASP.NET MVC Flexigrid sample - CodeProject : 'via Blog this'
-
A possible way of handling distributed transaction for multiple contexts without alleviation to MSDTC??? c# - Entity Framework - Using Trans...
Thursday, July 31, 2014
Saturday, July 26, 2014
Windows Azure Cloud Services Concepts (Part 1) | Windows Azure Cloud Services | Channel 9
Azure cloud service and load balancer and role
Windows Azure Cloud Services Concepts (Part 1) | Windows Azure Cloud Services | Channel 9:
'via Blog this'
Windows Azure Cloud Services Concepts (Part 1) | Windows Azure Cloud Services | Channel 9:
'via Blog this'
Friday, July 25, 2014
Thursday, July 24, 2014
Enabling cors on asp.net web api
http://www.asp.net/web-api/overview/security/enabling-cross-origin-requests-in-web-api
Sunday, July 13, 2014
Easy, eager and explicit loading entity framework
http://www.asp.net/web-api/overview/creating-web-apis/using-web-api-with-entity-framework/part-4
Friday, July 11, 2014
Connecting to sql server express instance using web config connection string and entity framework
This connection string does NOT work:
<connectionStrings>
<!--<add name="TodosConnection" providerName="System.Data.SqlClient"
connectionString="Server=.\SqlExprss;Initial Catalog=Todos;Integrated Security=True;"/>-->
This connection string works:
<add name="TodosConnection"
connectionString="data source=.\SQLEXPRESS;Integrated Security=True; database=Todos;"
providerName="System.Data.SqlClient" />
</connectionStrings>
And in the code this how to use it:
namespace Todo.Api.Data
{
public class TodosContext : DbContext
{
public TodosContext()
: base("name=TodosConnection")
{
Debug.Write(Database.Connection.ConnectionString);
}
public DbSet<Todo> Todos { get; set; }
}
}
Subscribe to:
Posts (Atom)