public UserObj(User usr, int order) { UserID = usr.UserID; Order = order; if (usr.Usernames.Count > 0) { Username = usr.Usernames[0].Username1; TeamName = usr.Usernames[0].TeamName; Password = usr.Password; } else { Username = String.Empty; TeamName = String.Empty; } }
partial void UpdateUser(User instance);
partial void DeleteUser(User instance);
partial void InsertUser(User instance);