diff options
| author | Laoujin <woutervs@hotmail.com> | 2015-01-31 20:42:27 +0100 | 
|---|---|---|
| committer | Laoujin <woutervs@hotmail.com> | 2015-01-31 20:42:27 +0100 | 
| commit | 012a4a8e901eda4fa89e151f398c67500af8acb9 (patch) | |
| tree | 898ba78b9f979b4dd842c72ae2ce98e336cc7450 | |
| parent | 937e6dad51446cf47c85156e4af0696efdcac43b (diff) | |
[CSharp/en]Fixed compilation and ef errors
| -rw-r--r-- | csharp.html.markdown | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/csharp.html.markdown b/csharp.html.markdown index 4a238f25..d3738b39 100644 --- a/csharp.html.markdown +++ b/csharp.html.markdown @@ -26,7 +26,7 @@ Multi-line comments look like this  // Specify namespaces application will be using  using System;  using System.Collections.Generic; -using System.Data.Entity; +using System.Data.Entity; // Add dll reference with NuGet: Install-Package EntityFramework  using System.Dynamic;  using System.Linq;  using System.Linq.Expressions; @@ -684,7 +684,7 @@ on a new line! ""Wow!"", the masses cried";          // All though this is not entirely useful in this example, you          // could do bicycle[0] which yields "chris" to get the first passenger or          // bicycle[1] = "lisa" to set the passenger. (of this apparent quattrocycle) -        private string[] passengers = { "chris", "phil", "darren", "regina" } +        private string[] passengers = { "chris", "phil", "darren", "regina" };          public string this[int i]          { @@ -786,7 +786,7 @@ on a new line! ""Wow!"", the masses cried";      /// EntityFramework Code First is awesome (similar to Ruby's ActiveRecord, but bidirectional)      /// http://msdn.microsoft.com/en-us/data/jj193542.aspx      /// </summary> -    public class BikeRepository : DbSet +    public class BikeRepository : DbContext      {          public BikeRepository()              : base() | 
