Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

dbset syntax

using System;
using System.Data.Entity;

//BlogContext is a sample class.It can be any class
//but make sure that the class must have to extend from DbContext Class
public class BlogContext:DbContext
    {
        //dbSet property declaration
        public virtual DbSet<Blog> Blogs { get; set; }
    }
 
PREVIOUS NEXT
Tagged: #dbset #syntax
ADD COMMENT
Topic
Name
3+3 =