Skip to content

Instantly share code, notes, and snippets.

@SkightTeam
Created April 2, 2012 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SkightTeam/2287468 to your computer and use it in GitHub Desktop.
Save SkightTeam/2287468 to your computer and use it in GitHub Desktop.
Persistent --> 考试类映射
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