📜  sequelize 实例方法不是函数 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:58.830000             🧑  作者: Mango

代码示例1
// starting with Sequelize 4.0 and above, you have to use the prototype methodology in order to define instance methods 

User.prototype.validPassword = function(password) {
      return bcrypt.compareSync(password, this.password);
};