Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

DbContext

$
0
0

Hi

  I have below 2 classes and how they will be written in DbContext

Thanks

 public partial class AuthorViewModel
    {
        [Key]
        public int Id { get; set; }

        public string AuthorName { get; set; }

        public string Address { get; set; }
    }


 public partial class AuthorListViewModel
    {
        public IEnumerable<AuthorViewModel> AuthorList {get;set;}

    }


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>