public static aspnet_Users GetUtilisateurById(Guid id) { bindedinEntities bie = SingletonEntities.Instance; var users = from c in bie.aspnet_Users where c.UserId.Equals(id) select c; aspnet_Users u = new aspnet_Users(); foreach (aspnet_Users userItem in users.ToList()) { u = userItem; } return u; }
/// <summary> /// Deprecated Method for adding a new object to the aspnet_Users EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToaspnet_Users(aspnet_Users aspnet_Users) { base.AddObject("aspnet_Users", aspnet_Users); }
/// <summary> /// Create a new aspnet_Users object. /// </summary> /// <param name="applicationId">Initial value of the ApplicationId property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="userName">Initial value of the UserName property.</param> /// <param name="loweredUserName">Initial value of the LoweredUserName property.</param> /// <param name="isAnonymous">Initial value of the IsAnonymous property.</param> /// <param name="lastActivityDate">Initial value of the LastActivityDate property.</param> public static aspnet_Users Createaspnet_Users(global::System.Guid applicationId, global::System.Guid userId, global::System.String userName, global::System.String loweredUserName, global::System.Boolean isAnonymous, global::System.DateTime lastActivityDate) { aspnet_Users aspnet_Users = new aspnet_Users(); aspnet_Users.ApplicationId = applicationId; aspnet_Users.UserId = userId; aspnet_Users.UserName = userName; aspnet_Users.LoweredUserName = loweredUserName; aspnet_Users.IsAnonymous = isAnonymous; aspnet_Users.LastActivityDate = lastActivityDate; return aspnet_Users; }