سلام وقت بخیر.
در رابطه با قسمت 6 آموزش من مرحله به مرحله با آموزش پیش رفتم. دیتابیس را ساختم ودر مرحله ساخت AccuontingModel در لایه DataLayer با 6 ارور مواجه شدم. میشه لطفا دلیلشو بفرمایید؟؟
من از ویژوال استودیو2015 استفاده کردم.
خطاها:
Severity Code Description Project File Line
Error CS0116 A namespace cannot directly contain members such as fields or methods Accounting.DataLayer c:\users\hamed\documents\visual studio 2015\Projects\Accounting\Accounting.DataLayer\AccountingModel.Context.cs 1
Severity Code Description Project File Line
Error CS0116 A namespace cannot directly contain members such as fields or methods Accounting.DataLayer c:\users\hamed\documents\visual studio 2015\Projects\Accounting\Accounting.DataLayer\AccountingModel.cs 1
Severity Code Description Project File Line
Error CS0103 The name 'ErrorGeneratingOutput' does not exist in the current context. Accounting.DataLayer c:\users\hamed\documents\visual studio 2015\Projects\Accounting\Accounting.DataLayer\AccountingModel.Context.cs 1
Severity Code Description Project File Line
Error CS0103 The name 'ErrorGeneratingOutput' does not exist in the current context. Accounting.DataLayer c:\users\hamed\documents\visual studio 2015\Projects\Accounting\Accounting.DataLayer\AccountingModel.cs 1
Severity Code Description Project File Line
Error Compiling transformation: Metadata file '%VS140COMNTOOLS%..\IDE\EntityFramework.dll' could not be found Accounting.DataLayer c:\users\hamed\documents\visual studio 2015\Projects\Accounting\Accounting.DataLayer\AccountingModel.tt 1
Severity Code Description Project File Line
Error Compiling transformation: Metadata file '%VS140COMNTOOLS%..\IDE\Microsoft.Data.Entity.Design.dll' could not be found Accounting.DataLayer c:\users\hamed\documents\visual studio 2015\Projects\Accounting\Accounting.DataLayer\AccountingModel.tt 1
سپاس
سلام دوست من شما متد یا متغیری داخل namespace به اشتباه ساختید احتمالا این مورد رو بررسی کنید