当前位置: 首页>>代码示例>>C#>>正文


C# ObjectIsValidEventArgs类代码示例

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


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


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