public RatingDAL ToRate(SqlDataReader reader) { RatingDAL ExpectedReturnValue = new RatingDAL(); ExpectedReturnValue.MixtapeID = reader.GetInt32(OffsetToMixtapeID); ExpectedReturnValue.UserID = reader.GetInt32(OffsetToUserID); ExpectedReturnValue.RatingScore = reader.GetDecimal(OffsetToRatingScore); return(ExpectedReturnValue); }
public RatingBLL(DataAccessLayer.RatingDAL rating) { MixtapeID = rating.MixtapeID; UserID = rating.UserID; RatingScore = rating.RatingScore; }