Beispiel #1
0
 static void Main(string[] args)
 {
     Console.WriteLine(55);
     var tt = new PostService().GetComments(1);
     //Console.Write(tt.GetAll());
     var pp = new EFUnitOfWork();
     foreach(var item in tt)
     {
         Console.Write(item.comment);
     }
     var array = pp.Users.GetAll();
     Console.WriteLine(pp.Posts.Get(2).Name);
     foreach (var item in array)
     {
         Console.WriteLine(item.Name);
     }
     Console.ReadLine();
 }
Beispiel #2
0
 public UserService()
 {
     Database = new EFUnitOfWork();
 }
Beispiel #3
0
 public PictureService()
 {
     Database = new EFUnitOfWork();
 }
Beispiel #4
0
 public AlbumService()
 {
     Database = new EFUnitOfWork();
 }
Beispiel #5
0
 public PostService()
 {
     Database = new EFUnitOfWork();
 }