Breaking Changes - DXperience v2008 vol 2.1

此版本更新涉及XAF框架及XtraCharts组件的重要行为与API变动,包括UI控件、XPO与XAF的变化,以及图表日期时间格式显示等。移除了RuleBase.CreateContext等方法,并对一些类进行了迁移。

http://www.fosoyo.com/

 

 

 

Breaking Changes
.NET Product Line - v2008 vol 2.1

 
 

The following pages list important behavior and API changes, which were introduced in this version:

Additional breaking changes in v2008 vol 2.1:

XtraCharts Suite
  • Now all date-time values are shown in the designer using the date-time format from the corresponding date-time options (SeriesBase.PointOptions.ArgumentDateTimeOptions, SeriesBase.PointOptions.ValueDateTimeOptions, AxisBase.DateTimeOptions).
eXpressApp Framework (XAF)
  • The RuleBase.CreateContext method was removed.
  • The RuleBase.IsEmptyValue method was removed. Use the static RuleSet.IsEmptyValue method instead.
  • The RuleBaseAttribute class' CreateBaseRule and CreateRule methods were removed. Instead, override the RuleType property to return the type of the rule that the attribute creates.
  • The RuleBaseAttribute.CreateRule method returns an IRule object instead of a RuleBase object.
  • The RuleBaseAttribute.Id property was removed. Use RuleBaseAttribute.Properties.Id instead.
  • The RuleBaseAttribute.SourceName property was removed. Use RuleBaseAttribute.Properties.Id instead.
  • The RuleSearchObjectAttribute class was removed.
  • The Criteria and IncludeCurrentObject properties of the RuleSearchObject class were moved to the RuleSearchObjectProperties class.
  • The RuleSearchObject.GetLooksFor method was removed.
  • The RuleSearchObject.LastSearchResults property was removed.
  • The ValidationContextsController class was removed.
  • The ContextValidationResult.Results property was removed. Use the DisplayableValidationResultItems property instead.
  • The RuleSet.IsValid method is obsolete. You will get a compilation error unless you use the RuleSet.ValidateTarget method.
  • The RuleSet.IsValidAll method is obsolete. You will get a compilation error unless you use the RuleSet.ValidateAllTargets mehtod.
  • The declaration of the RuleSet.Validate(object target, ContextIdentifiers contextIDs, ErrorMessageHandler messageHandler) method was changed to: Validate(object target, ContextIdentifiers contextIDs, ValidationErrorMessageHandler messageHandler).
  • The declaration of the RuleSet.ValidateAll(IEnumerable targets, ContextIdentifiers contextIDs, ErrorMessageHandler messageHandler) method was changed to: ValidateAll(IEnumerable targets, ContextIdentifiers contextIDs, ValidationErrorMessageHandler messageHandler).
  • Numerous classes from the DevExpress.Presistent.Base namespace were moved from the DevExpress.Persistent.Base to the DevExpress.ExpressApp assembly.
  • Use the ITypeInfo type where you previously used the XPClassInfo type.
  • Use the IMemberInfo type where you previously used the XPMemberInfo type.
  • Use the ITypesInfo type where you previously used the XPDictionary type.
  • The ListEditor.AssignDataSourceToControl virtual method has a new parameter now: IList dataSource.
  • When a XafApplication object is not available, you have to create an instance of the ObjectSpace class manually. To do this, use the constructor with two parameters. For instance, this code should be used:

    ObjectSpace objectSpace = new ObjectSpace(new UnitOfWork(session.DataLayer), new XpoTypesInfoAdapter(session.DataLayer.Dictionary));

    instead of:

    ObjectSpace objectSpace = new ObjectSpace(new UnitOfWork(session.DataLayer));

  • The web page templates and css styles have been changed. The following files need to be updated:

    • Default.aspx
    • Default.aspx.cs
    • Default.aspx.designer.cs
    • Dialog.aspx
    • Dialog.aspx.cs
    • Dialog.aspx.designer.cs
    • Login.aspx
    • Login.aspx.cs
    • Login.aspx.designer.cs
    • Error.aspx
    • Error.aspx.cs
    • Error.aspx.designer.cs
    • NestedFrameControl.ascx
    • NestedFrameControl.ascx.cs
    • NestedFrameControl.ascx.designer.cs
    • XAFControlsStyle.css
    • TemplateStyle.css
    • MoveFooter.js

转载于:https://www.cnblogs.com/fosoyo/archive/2008/07/26/1251823.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值