xiaolizi007
3/29/2017 - 1:56 AM

SQL text 类型

SQL text 类型

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace NjModelmgr.Entity
{
    [Table("NewsEntity")]
    public class NewsEntity
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int NewsEntityId { get; set; }
        public string NewsTitle { get; set; }
        public string PublishDateTime { get; set; }
        [Column(TypeName = "ntext")]
        [MaxLength]
        public string NewsContent { get; set; }
    }
}