我的 Castle ActiveRecord 类中有 oracle 的主键序列:
[PrimaryKey(PrimaryKeyType.SeqHiLo, "UserId", SequenceName = "users_seq")]
public int Id { get; set; }
现在我需要配置 ActiveRecord 以使用 Sql Server,但它不支持序列,但这是不可能的,因为使用了特定于 oracle 的映射。
我不关心身份生成算法,我只想让它工作,那么是否可以为身份字段提供通用映射,以便可以在 sql server 和 oracle 之间共享类?