• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ObjectIsValidEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ObjectIsValidEventArgs的典型用法代码示例。如果您正苦于以下问题:C# ObjectIsValidEventArgs类的具体用法?C# ObjectIsValidEventArgs怎么用?C# ObjectIsValidEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ObjectIsValidEventArgs类属于命名空间,在下文中一共展示了ObjectIsValidEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: ObjectIsValid

 public static void ObjectIsValid(StringProperty obj, ObjectIsValidEventArgs e)
 {
     if (obj.GetLengthConstraint() == null)
     {
         e.Errors.Add(string.Format("String property {0}.{1} must have a string range constraint", obj.ObjectClass.Name, obj.Name));
     }
 }
开发者ID:daszat,项目名称:zetbox,代码行数:7,代码来源:StringPropertyActions.cs


示例2: ObjectIsValid

 public static void ObjectIsValid(IndexConstraint obj, ObjectIsValidEventArgs e)
 {
     if (obj.Properties.Count == 0)
     {
         e.Errors.Add("Cannot have index without Properties.");
     }
 }
开发者ID:daszat,项目名称:zetbox,代码行数:7,代码来源:IndexConstraintActions.cs


示例3: ObjectIsValid

 protected override ObjectIsValidResult ObjectIsValid()
 {
     ObjectIsValidEventArgs e = new ObjectIsValidEventArgs();
     var b = base.ObjectIsValid();
     e.Errors.AddRange(b.Errors);
     if (OnObjectIsValid_ServiceDescriptor != null)
     {
         OnObjectIsValid_ServiceDescriptor(this, e);
     }
     return new ObjectIsValidResult(e.IsValid, e.Errors);
 }
开发者ID:daszat,项目名称:zetbox,代码行数:11,代码来源:ServiceDescriptor.Ef.Designer.cs


示例4: ObjectIsValid

 protected override ObjectIsValidResult ObjectIsValid()
 {
     ObjectIsValidEventArgs e = new ObjectIsValidEventArgs();
     var b = base.ObjectIsValid();
     e.IsValid = b.IsValid;
     e.Errors.AddRange(b.Errors);
     if (OnObjectIsValid_NavigationSearchScreen != null)
     {
         OnObjectIsValid_NavigationSearchScreen(this, e);
     }
     return new ObjectIsValidResult(e.IsValid, e.Errors);
 }
开发者ID:jrgcubano,项目名称:zetbox,代码行数:12,代码来源:NavigationSearchScreen.Memory.Designer.cs


示例5: ObjectIsValid

 protected override ObjectIsValidResult ObjectIsValid()
 {
     ObjectIsValidEventArgs e = new ObjectIsValidEventArgs();
     var b = base.ObjectIsValid();
     e.Errors.AddRange(b.Errors);
     if (OnObjectIsValid_AbstractModuleMember != null)
     {
         OnObjectIsValid_AbstractModuleMember(this, e);
     }
     return new ObjectIsValidResult(e.IsValid, e.Errors);
 }
开发者ID:daszat,项目名称:zetbox,代码行数:11,代码来源:AbstractModuleMember.Ef.Designer.cs


示例6: ObjectIsValid

 protected override ObjectIsValidResult ObjectIsValid()
 {
     ObjectIsValidEventArgs e = new ObjectIsValidEventArgs();
     var b = base.ObjectIsValid();
     e.IsValid = b.IsValid;
     e.Errors.AddRange(b.Errors);
     if (OnObjectIsValid_EnumParameter != null)
     {
         OnObjectIsValid_EnumParameter(this, e);
     }
     return new ObjectIsValidResult(e.IsValid, e.Errors);
 }
开发者ID:jrgcubano,项目名称:zetbox,代码行数:12,代码来源:EnumParameter.Ef.Designer.cs


示例7: ObjectIsValid

 protected override ObjectIsValidResult ObjectIsValid()
 {
     ObjectIsValidEventArgs e = new ObjectIsValidEventArgs();
     var b = base.ObjectIsValid();
     e.Errors.AddRange(b.Errors);
     if (OnObjectIsValid_PropertyDateTimeTest != null)
     {
         OnObjectIsValid_PropertyDateTimeTest(this, e);
     }
     return new ObjectIsValidResult(e.IsValid, e.Errors);
 }
开发者ID:daszat,项目名称:zetbox,代码行数:11,代码来源:PropertyDateTimeTest.Memory.Designer.cs


示例8: ObjectIsValid

 protected override ObjectIsValidResult ObjectIsValid()
 {
     ObjectIsValidEventArgs e = new ObjectIsValidEventArgs();
     var b = base.ObjectIsValid();
     e.IsValid = b.IsValid;
     e.Errors.AddRange(b.Errors);
     if (OnObjectIsValid_StringRangeConstraint != null)
     {
         OnObjectIsValid_StringRangeConstraint(this, e);
     }
     return new ObjectIsValidResult(e.IsValid, e.Errors);
 }
开发者ID:jrgcubano,项目名称:zetbox,代码行数:12,代码来源:StringRangeConstraint.NHibernate.Designer.cs


示例9: ObjectIsValid

 protected override ObjectIsValidResult ObjectIsValid()
 {
     ObjectIsValidEventArgs e = new ObjectIsValidEventArgs();
     var b = base.ObjectIsValid();
     e.IsValid = b.IsValid;
     e.Errors.AddRange(b.Errors);
     if (OnObjectIsValid_GroupMembership != null)
     {
         OnObjectIsValid_GroupMembership(this, e);
     }
     return new ObjectIsValidResult(e.IsValid, e.Errors);
 }
开发者ID:jrgcubano,项目名称:zetbox,代码行数:12,代码来源:GroupMembership.NHibernate.Designer.cs


示例10: ObjectIsValid

 public static void ObjectIsValid(Task obj, ObjectIsValidEventArgs e)
 {
     if (obj.Aufwand < 0) e.Errors.Add("Ungültiger Aufwand");
     if (obj.DatumBis < obj.DatumVon) e.Errors.Add("Falscher Zeitraum");
 }
开发者ID:daszat,项目名称:zetbox,代码行数:5,代码来源:TaskActions.cs


示例11: ObjectIsValid

 protected override ObjectIsValidResult ObjectIsValid()
 {
     ObjectIsValidEventArgs e = new ObjectIsValidEventArgs();
     var b = base.ObjectIsValid();
     e.IsValid = b.IsValid;
     e.Errors.AddRange(b.Errors);
     if (OnObjectIsValid_RequiredParentChild != null)
     {
         OnObjectIsValid_RequiredParentChild(this, e);
     }
     return new ObjectIsValidResult(e.IsValid, e.Errors);
 }
开发者ID:jrgcubano,项目名称:zetbox,代码行数:12,代码来源:RequiredParentChild.Memory.Designer.cs


示例12: ObjectIsValid

 protected override ObjectIsValidResult ObjectIsValid()
 {
     ObjectIsValidEventArgs e = new ObjectIsValidEventArgs();
     var b = base.ObjectIsValid();
     e.IsValid = b.IsValid;
     e.Errors.AddRange(b.Errors);
     if (OnObjectIsValid_AnyReferenceTestObject != null)
     {
         OnObjectIsValid_AnyReferenceTestObject(this, e);
     }
     return new ObjectIsValidResult(e.IsValid, e.Errors);
 }
开发者ID:jrgcubano,项目名称:zetbox,代码行数:12,代码来源:AnyReferenceTestObject.Memory.Designer.cs


示例13: ObjectIsValid

 protected override ObjectIsValidResult ObjectIsValid()
 {
     ObjectIsValidEventArgs e = new ObjectIsValidEventArgs();
     var b = base.ObjectIsValid();
     e.Errors.AddRange(b.Errors);
     if (OnObjectIsValid_RecurrenceRuleTester != null)
     {
         OnObjectIsValid_RecurrenceRuleTester(this, e);
     }
     return new ObjectIsValidResult(e.IsValid, e.Errors);
 }
开发者ID:daszat,项目名称:zetbox,代码行数:11,代码来源:RecurrenceRuleTester.Ef.Designer.cs


示例14: ObjectIsValid

 protected override ObjectIsValidResult ObjectIsValid()
 {
     ObjectIsValidEventArgs e = new ObjectIsValidEventArgs();
     var b = base.ObjectIsValid();
     e.IsValid = b.IsValid;
     e.Errors.AddRange(b.Errors);
     if (OnObjectIsValid_ExceptionLogEntry != null)
     {
         OnObjectIsValid_ExceptionLogEntry(this, e);
     }
     return new ObjectIsValidResult(e.IsValid, e.Errors);
 }
开发者ID:jrgcubano,项目名称:zetbox,代码行数:12,代码来源:ExceptionLogEntry.Memory.Designer.cs


示例15: ObjectIsValid

 public static void ObjectIsValid(Relation obj, ObjectIsValidEventArgs e)
 {
     if (obj.A != null && obj.B != null && obj.GetAssociationName().Length > 60)
     {
         e.Errors.Add(string.Format("The relation name '{0}' (FK_<a>_<verb>_<b>) exceed 60 chars. This could violate a database (Postgres) max identifier length.", obj.GetAssociationName()));
     }
 }
开发者ID:daszat,项目名称:zetbox,代码行数:7,代码来源:RelationActions.cs


示例16: ObjectIsValid

 public static void ObjectIsValid(Task obj, ObjectIsValidEventArgs e)
 {
 }
开发者ID:daszat,项目名称:zetbox,代码行数:3,代码来源:TaskActions.cs


示例17: ObjectIsValid

 protected override ObjectIsValidResult ObjectIsValid()
 {
     ObjectIsValidEventArgs e = new ObjectIsValidEventArgs();
     var b = base.ObjectIsValid();
     e.Errors.AddRange(b.Errors);
     if (OnObjectIsValid_ObjectReferenceProperty != null)
     {
         OnObjectIsValid_ObjectReferenceProperty(this, e);
     }
     return new ObjectIsValidResult(e.IsValid, e.Errors);
 }
开发者ID:daszat,项目名称:zetbox,代码行数:11,代码来源:ObjectReferenceProperty.NHibernate.Designer.cs


示例18: ObjectIsValid

 protected override ObjectIsValidResult ObjectIsValid()
 {
     ObjectIsValidEventArgs e = new ObjectIsValidEventArgs();
     var b = base.ObjectIsValid();
     e.IsValid = b.IsValid;
     e.Errors.AddRange(b.Errors);
     if (OnObjectIsValid_One_to_N_relations_One != null)
     {
         OnObjectIsValid_One_to_N_relations_One(this, e);
     }
     return new ObjectIsValidResult(e.IsValid, e.Errors);
 }
开发者ID:jrgcubano,项目名称:zetbox,代码行数:12,代码来源:One_to_N_relations_One.Memory.Designer.cs


示例19: ObjectIsValid

 protected override ObjectIsValidResult ObjectIsValid()
 {
     ObjectIsValidEventArgs e = new ObjectIsValidEventArgs();
     var b = base.ObjectIsValid();
     e.IsValid = b.IsValid;
     e.Errors.AddRange(b.Errors);
     if (OnObjectIsValid_NewGuidDefaultValue != null)
     {
         OnObjectIsValid_NewGuidDefaultValue(this, e);
     }
     return new ObjectIsValidResult(e.IsValid, e.Errors);
 }
开发者ID:jrgcubano,项目名称:zetbox,代码行数:12,代码来源:NewGuidDefaultValue.Memory.Designer.cs


示例20: ObjectIsValid

 protected override ObjectIsValidResult ObjectIsValid()
 {
     ObjectIsValidEventArgs e = new ObjectIsValidEventArgs();
     var b = base.ObjectIsValid();
     e.IsValid = b.IsValid;
     e.Errors.AddRange(b.Errors);
     if (OnObjectIsValid_OptionalPredicateFilterConfiguration != null)
     {
         OnObjectIsValid_OptionalPredicateFilterConfiguration(this, e);
     }
     return new ObjectIsValidResult(e.IsValid, e.Errors);
 }
开发者ID:jrgcubano,项目名称:zetbox,代码行数:12,代码来源:OptionalPredicateFilterConfiguration.NHibernate.Designer.cs



注:本文中的ObjectIsValidEventArgs类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ObjectList类代码示例发布时间:2022-05-24
下一篇:
C# ObjectInfo类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap