コード例 #1
0
        public void CreateTable()
        {
            if (!TableStorageContextCourseMediaRelations.IsTableExisted())
            {
                TableStorageContextCourseMediaRelations.CreateTableIfNotExist();

                var courseMediaRelation = new CourseMediaRelation()
                {
                    CourseID = "COFB09",
                    MediaID = "v1111"
                };
                var courseMediaRelation2 = new CourseMediaRelation()
                {
                    CourseID = "COFB09",
                    MediaID = "m1111"
                };
                Context.AddCourseMediaRelation(courseMediaRelation);
                Context.AddCourseMediaRelation(courseMediaRelation2);
            }
        }
 public void UpdateCourseMediaRelation(CourseMediaRelation courseMediaRelation)
 {
     UpdateObject(courseMediaRelation);
     SaveChangesWithRetries();
 }
 public void AddCourseMediaRelation(CourseMediaRelation courseMediaRelation)
 {
     AddObject(CourseMediaRelationsTableName, courseMediaRelation);
     SaveChangesWithRetries();
 }