mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 07:22:57 +08:00
Update Check
This commit is contained in:
parent
223dfbcf84
commit
fb1269eba4
@ -366,8 +366,7 @@ namespace SqlSugar
|
|||||||
//}
|
//}
|
||||||
if (item.IsIdentity && !item.IsPrimarykey)
|
if (item.IsIdentity && !item.IsPrimarykey)
|
||||||
{
|
{
|
||||||
item.IsPrimarykey = true;
|
Check.Exception(true, "Identity only primary key");
|
||||||
//Check.Exception(item.DataType == "integer", "Identity only integer type");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -410,8 +410,7 @@ namespace SqlSugar
|
|||||||
//}
|
//}
|
||||||
if (item.IsIdentity && !item.IsPrimarykey)
|
if (item.IsIdentity && !item.IsPrimarykey)
|
||||||
{
|
{
|
||||||
item.IsPrimarykey = true;
|
Check.Exception(true, "Identity only primary key");
|
||||||
//Check.Exception(item.DataType == "integer", "Identity only integer type");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user