From 8911f368de43ab33d0d5ac251551de1ee765727c Mon Sep 17 00:00:00 2001 From: Laoujin Date: Sun, 1 Feb 2015 06:01:01 +0100 Subject: [CSharp/en]extra details for using EntityFramework and namespaces --- csharp.html.markdown | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/csharp.html.markdown b/csharp.html.markdown index 58d5fa11..87a70200 100644 --- a/csharp.html.markdown +++ b/csharp.html.markdown @@ -24,19 +24,24 @@ Multi-line comments look like this /// //public void MethodOrClassOrOtherWithParsableHelp() {} -// Specify namespaces application will be using +// Specify the namespaces this source code will be using +// The namespaces below are all part of the standard .NET Framework Class Libary using System; using System.Collections.Generic; -using System.Data.Entity; // Add dll reference with NuGet: Install-Package EntityFramework using System.Dynamic; using System.Linq; -using System.Linq.Expressions; using System.Net; using System.Threading.Tasks; using System.IO; -// defines scope to organize code into "packages" -namespace LearningXInYMinutes.CSharp +// But this is one is not: +using System.Data.Entity; +// In order to be able to use it, you need to add a dll reference +// This can be done with the NuGet package manager: `Install-Package EntityFramework` + +// Namespaces define scope to organize code into "packages" or "modules" +// Using this code from another source file: using Learning.CSharp; +namespace Learning.CSharp { // Each .cs file should at least contain a class with the same name as the file // you're allowed to do otherwise, but shouldn't for sanity. -- cgit v1.2.3