Example #1
0
 public abstract void CreateUpdateDeleteImage(int userID, Avatar avatar, DataProviderAction action);
Example #2
0
        public static Avatar PopulateAvatarFromIReader(IDataReader reader)
        {
            Avatar avatar = new Avatar();

            avatar.ImageID          = (int) reader["ImageID"];
            avatar.UserID           = (int) reader["UserID"];
            avatar.Content          = (byte[]) reader["Content"];
            avatar.ContentType      = (string) reader["ContentType"];
            avatar.Length           = (int) reader["Length"];
            // ����Filename
            avatar.FileName			= (string) reader["FileName"];
            avatar.DateCreated      = (DateTime) reader["DateLastUpdated"];

            return avatar;
        }