コード例 #1
0
 /// <summary>
 /// Create a new tbl_UserDetails object.
 /// </summary>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="companyName">Initial value of the CompanyName property.</param>
 /// <param name="designation">Initial value of the Designation property.</param>
 /// <param name="email">Initial value of the Email property.</param>
 /// <param name="mobileNumber">Initial value of the MobileNumber property.</param>
 /// <param name="city">Initial value of the City property.</param>
 /// <param name="userName">Initial value of the UserName property.</param>
 /// <param name="password">Initial value of the Password property.</param>
 /// <param name="registered_Date">Initial value of the Registered_Date property.</param>
 /// <param name="companyType_Id">Initial value of the CompanyType_Id property.</param>
 /// <param name="roleId">Initial value of the RoleId property.</param>
 public static tbl_UserDetails Createtbl_UserDetails(global::System.Int32 userId, global::System.String name, global::System.String companyName, global::System.String designation, global::System.String email, global::System.String mobileNumber, global::System.String city, global::System.String userName, global::System.String password, global::System.DateTime registered_Date, global::System.Int32 companyType_Id, global::System.Int32 roleId)
 {
     tbl_UserDetails tbl_UserDetails = new tbl_UserDetails();
     tbl_UserDetails.UserId = userId;
     tbl_UserDetails.Name = name;
     tbl_UserDetails.CompanyName = companyName;
     tbl_UserDetails.Designation = designation;
     tbl_UserDetails.Email = email;
     tbl_UserDetails.MobileNumber = mobileNumber;
     tbl_UserDetails.City = city;
     tbl_UserDetails.UserName = userName;
     tbl_UserDetails.Password = password;
     tbl_UserDetails.Registered_Date = registered_Date;
     tbl_UserDetails.CompanyType_Id = companyType_Id;
     tbl_UserDetails.RoleId = roleId;
     return tbl_UserDetails;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the tbl_UserDetails EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotbl_UserDetails(tbl_UserDetails tbl_UserDetails)
 {
     base.AddObject("tbl_UserDetails", tbl_UserDetails);
 }
コード例 #3
0
ファイル: UserDetails.cs プロジェクト: baluragala/IDS-P-001
        public void Register(UserDetails userDetails)
        {
            tbl_UserDetails entity = new tbl_UserDetails
            {
                Name = userDetails.Name,
                MobileNumber = userDetails.MobileNumber,
                CompanyName = userDetails.CompanyName,
                CompanyType_Id = Convert.ToInt32(userDetails.CompanyType),
                Designation = userDetails.Designation,
                Email = userDetails.Email,
                City = userDetails.City,
                UserName=String.Empty,
                Password=String.Empty,
                Registered_Date=DateTime.Now,
                RoleId=3
            };

            db.tbl_UserDetails.AddObject(entity);
            db.SaveChanges();

            //otp generation logic
        }