sing FluentNHibernate.Conventions;
using FluentNHibernate.Conventions.Instances;
namespace MEVE.Data.Conventions
{
public class PrimaryKeyConvention : IIdConvention
{
public void Apply(IIdentityInstance instance)
{
instance.Column("Id");
// oracle -> sqlservice
//if (instance.Type == typeof(long))
//{
// var SequenceName = FormatSquencesName.FixedNameIn30(string.Format("{0}_Sequence",
// instance.EntityType.Name.Replace("Record", "")));
// instance.GeneratedBy.Sequence(SequenceName);
//}
}
}
}
Orchard可以根据中文网上的提示一步步改为Oracle,但要改回来最关键的是把这个类删除或者把中间那段代码注释掉就OK了。
Orchard 将 oracle改为sqlserver
最新推荐文章于 2021-08-09 22:59:53 发布