コード例 #1
0
 public void SetTableName(ITableTemplate template, TaskContext context)
 {
     template.Dispatcher.Invoke(() =>
     {
         var tableName = RandomUtility.NextIdentifier();
         template.SetTableName(context.Authentication, tableName);
     });
 }
コード例 #2
0
        public static void InitializeRandom(this ITableTemplate template, Authentication authentication)
        {
            var tableName = RandomUtility.NextIdentifier();

            template.SetTableName(authentication, tableName);
            if (RandomUtility.Within(50) == true)
            {
                template.SetTags(authentication, (TagInfo)TagInfoUtility.Names.Random());
            }
            if (RandomUtility.Within(50) == true)
            {
                template.SetComment(authentication, RandomUtility.NextString());
            }
            template.AddRandomColumns(authentication);
        }
コード例 #3
0
 public void SetTableName()
 {
     template.SetTableName(authentication, RandomUtility.NextIdentifier());
 }