¡@

Home 

c# Programming Glossary: dinnerrepository

A field initializer cannot reference the non-static field, method, or property?

http://stackoverflow.com/questions/7400677/a-field-initializer-cannot-reference-the-non-static-field-method-or-property

Class and a Services Class as below public class DinnerRepository DinnerDataContext db new DinnerDataContext public Dinner GetDinner.. d d.DinnerID id Others Code public class Service DinnerRepository repo new DinnerRepository Dinner dinner repo.GetDinner 5 Other.. Others Code public class Service DinnerRepository repo new DinnerRepository Dinner dinner repo.GetDinner 5 Other Code This Throws error..