コード例 #1
0
 /// <summary>
 /// gets an activity by id
 /// </summary>
 /// <param name="id">id of activity</param>
 /// <returns>DataRow of activity</returns>
 public static DataRow GetActivity(int id)
 {
     return(DalHelper.GetRowById(id, "UserActivity"));
 }
コード例 #2
0
 /// <summary>
 /// gets a game by id
 /// </summary>
 /// <param name="id">id of game</param>
 /// <returns>datarow of game</returns>
 public static DataRow GetGame(int id)
 {
     return(DalHelper.GetRowById(id, "Games"));
 }
コード例 #3
0
 /// <summary>
 /// Gets a user by id
 /// </summary>
 /// <param name="user">id of user</param>
 /// <returns>DataRow of user data</returns>
 public static DataRow GetUserById(int user)
 {
     return(DalHelper.GetRowById(user, "Users"));
 }
コード例 #4
0
 /// <summary>
 /// Returns a developer from id
 /// </summary>
 /// <param name="id">id of developer</param>
 /// <returns>DataRow of developer</returns>
 public static DataRow GetDeveloper(int id)
 {
     return(DalHelper.GetRowById(id, "Developer"));
 }
コード例 #5
0
 /// <summary>
 /// gets a photo by id and type
 /// </summary>
 /// <param name="id">id of photo</param>
 /// <param name="type">type of photo</param>
 /// <returns>DataRow of photo</returns>
 public static DataRow GetPhoto(int id, PhotoType type)
 {
     return(DalHelper.GetRowById(id, type.ToString()));
 }