Exemplo n.º 1
0
        private static List <KLFowllowAuthor> LoadListFromReader(IDataReader reader)
        {
            List <KLFowllowAuthor> kLFowllowAuthorList = new List <KLFowllowAuthor>();

            try
            {
                while (reader.Read())
                {
                    KLFowllowAuthor kLFowllowAuthor = new KLFowllowAuthor();
                    kLFowllowAuthor.followID        = Convert.ToInt32(reader["FollowID"]);
                    kLFowllowAuthor.userID          = Convert.ToInt32(reader["UserID"]);
                    kLFowllowAuthor.authorID        = Convert.ToInt32(reader["AuthorID"]);
                    kLFowllowAuthor.dateStartFollow = Convert.ToDateTime(reader["DateStartFollow"]);
                    kLFowllowAuthorList.Add(kLFowllowAuthor);
                }
            }
            finally
            {
                reader.Close();
            }

            return(kLFowllowAuthorList);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Compares 2 instances of KLFowllowAuthor.
 /// </summary>
 public static int CompareByDateStartFollow(KLFowllowAuthor kLFowllowAuthor1, KLFowllowAuthor kLFowllowAuthor2)
 {
     return(kLFowllowAuthor1.DateStartFollow.CompareTo(kLFowllowAuthor2.DateStartFollow));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Compares 2 instances of KLFowllowAuthor.
 /// </summary>
 public static int CompareByAuthorID(KLFowllowAuthor kLFowllowAuthor1, KLFowllowAuthor kLFowllowAuthor2)
 {
     return(kLFowllowAuthor1.AuthorID.CompareTo(kLFowllowAuthor2.AuthorID));
 }