SQL:
[FirstName] [nvarchar](250) NULL,
[MiddleInitial] [nvarchar](250) NULL,
[Surname] [nvarchar](250) NULL,
映射:
public string FirstName { get; set; }
public string MiddleInitial { get; set; }
public string Surname { get; set; }
m.Map(x => x.FirstName).Length(255);
m.Map(x => x.MiddleInitial).Length(255);
m.Map(x => x.Surname).Length(255);
我需要添加由 [FirstName] + " " +[MiddleInitial]+ " " + [Surname] 组成的全名字段。(用于在 jqGrid 中使用搜索)
请帮助我。