将模型中的Id属性作为主键是否更好,尽管不需要使用它来唯一标识记录?我使用的是asp.net核心和实体框架,这是我的模型
public class PreRegistration
{
public int Id {get; set;}
public string PhoneNumber {get; set;}
public string VerificationCode {get; set;}
}
当我可以很容易地使用电话号码进行识别时,拥有一个整数Id (自动递增)对我的模型是否有用/更好吗?在ASP.NET身份核心中,
我已经尝试了所有其他相关主题的可用帮助,但没有解决这个问题,代码如下
VB6 (DLL代码):
Public Function enterorder(vals() As Variant, ordhdr() As Variant) As String
................... code ............
enterorder = "done"
End Function
ASP:
SET objdll = server.createobject("dllproname.classname")
Dim values(1, 4)
Dim ordh
我的应用程序是一个ASP.NET标识2 Web应用程序。在我的启动课程中,我将AccessTokenExpireTimeSpan设置为14天:
public partial class Startup
{
public static OAuthAuthorizationServerOptions OAuthOptions { get; private set; }
public static string PublicClientId { get; private set; }
// For more information on configuring authe