Exemplo n.º 1
0
        public void NextValue()
        {
            var source = new EnumSource();
            var context = new GenerateContext
            {
                ClassType = typeof(User),
                MemberType = typeof(Status),
                MemberName = "Status"
            };

            for (int i = 0; i < 10; i++)
            {
                var nextValue = source.NextValue(context);
                _output.WriteLine($"Value {i}: {nextValue}");
            }

        }
Exemplo n.º 2
0
 /// <summary>
 /// 创建内容对象。
 /// </summary>
 /// <param name="context">生成上下文。</param>
 /// <param name="operate">操作对象。</param>
 internal DeleteContent(GenerateContext context, DbObjectsOperateBase operate)
     : base(context, operate)
 {
 }