コード例 #1
0
        void FetchData()
        {
            User user = new User () {
                Name = "Mauricio Minella"
            };

            this.ProductDescription = ProductToBeRated.Name;

            user.Profiles = EnumProfile.Wheat | EnumProfile.Lactose;

            foreach (EnumProfile item in GetFlags(user.Profiles))
            {
                this.ProductRatings.Add(new ProductRating()
                {
                    Product = ProductToBeRated,
                    Profile = item,
                    LikeCount = 10,
                    UnlikeCount = 11,
                });
            }
        }
コード例 #2
0
 public void Insert(User user)
 {
     _connection.Insert(user);
 }