Popular Posts

Thursday, July 31, 2014

Saturday, July 26, 2014

RavenDb related links


http://ravendb.net/docs/client-api/basic-operations/saving-new-document

http://blog.mariusschulz.com/2013/05/06/using-integer-document-ids-in-ravendb-indexes

Advanced Entity Framework 6 Scenarios for an MVC 5 Web Application (12 of 12) | The ASP.NET Site

Advanced Entity Framework 6 Scenarios for an MVC 5 Web Application (12 of 12) | The ASP.NET Site:



'via Blog this'

Introduction to Windows Azure Worker Roles (Part 2) | Windows Azure Cloud Services | Channel 9

Azure cloud services with service bus



Introduction to Windows Azure Worker Roles (Part 2) | Windows Azure Cloud Services | Channel 9:



'via Blog this'

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'

The World's Greatest Azure Demo

Great windows azure video - scalebility etc



The World's Greatest Azure Demo:



'via Blog this'

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; }
    }
}