我在我的MVC5项目中使用ASP.NET Identity 2.0,并想将AspNetUsers的id字段的数据类型从字符串(GUID)更改为int,因为我有一些与AspNetUsers表相关的表。我查看How to change type of id in Microsoft.AspNet.Identity.EntityFramework.IdentityUser上的许多页面,但似乎并不容易应用
我有两个实体称为用户和学生,如下图所示: public class User
{
[Key]
public string Id { get; set; }
//omitted for brevity
}
public class Student
{
[Key]
public int Id { get; set; }
//F
我尝试使用Hibernate在MySQL中生成GUID/UUID。下面是相同的代码:任何人都可以请建议我哪里出错。 public class MainClassLists {
public static void main(String[] args){
Configuration configuration = new Configuration().configur