public void Apply(IVersionInstance instance) { instance.Column("Version"); instance.CustomType("BinaryBlob"); instance.CustomSqlType("timestamp"); instance.Generated.Always(); instance.UnsavedValue("null"); }
public void Apply(IVersionInstance instance) { if (instance.Type.Name == "BinaryBlob") { instance.Nullable(); instance.CustomSqlType("timestamp"); instance.Generated.Always(); } }
public void Apply(IVersionInstance instance) { // These are NH default values for a type named "Version" instance.Column("Version"); instance.UnsavedValue(null); instance.CustomSqlType("rowversion"); // This is the change we are applying instance.Generated.Always(); }
public void Apply(IVersionInstance instance) { instance.CustomType <RowVersionType>(); instance.CustomSqlType("rowversion"); instance.Generated.Always(); }