Created
April 2, 2012 21:47
-
-
Save SkightTeam/2287468 to your computer and use it in GitHub Desktop.
Persistent --> 考试类映射
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using FluentNHibernate.Mapping; | |
using Skight.Demo.Domain.Examination; | |
namespace Skight.Demo.NHRepository | |
{ | |
public class ExamMap:ClassMap<Exam> | |
{ | |
public ExamMap() | |
{ | |
Id(x => x.Id); | |
Map(x => x.Code); | |
Map(x => x.Name); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment