25 lines
581 B
C#
25 lines
581 B
C#
using System;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Data.Entity;
|
|
using System.Linq;
|
|
|
|
namespace WinformGeneralDeveloperFrame
|
|
{
|
|
public partial class Model1 : DbContext
|
|
{
|
|
public Model1()
|
|
: base("name=Model1")
|
|
{
|
|
}
|
|
|
|
public virtual DbSet<T_ACL_Menu> T_ACL_Menu { get; set; }
|
|
|
|
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.Entity<T_ACL_Menu>()
|
|
.Property(e => e.ToolBtnList)
|
|
.IsUnicode(false);
|
|
}
|
|
}
|
|
}
|