Esempio 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);
        }
Esempio n. 2
0
 /// <summary>
 /// Compares 2 instances of KLFowllowAuthor.
 /// </summary>
 public static int CompareByDateStartFollow(KLFowllowAuthor kLFowllowAuthor1, KLFowllowAuthor kLFowllowAuthor2)
 {
     return(kLFowllowAuthor1.DateStartFollow.CompareTo(kLFowllowAuthor2.DateStartFollow));
 }
Esempio n. 3
0
 /// <summary>
 /// Compares 2 instances of KLFowllowAuthor.
 /// </summary>
 public static int CompareByAuthorID(KLFowllowAuthor kLFowllowAuthor1, KLFowllowAuthor kLFowllowAuthor2)
 {
     return(kLFowllowAuthor1.AuthorID.CompareTo(kLFowllowAuthor2.AuthorID));
 }