Jan
08
2010

Simple XPO Template for XPOSync bug

User Rating: / 0
PoorBest 

Until the XPOSync for Simplified Criteria bug is fixed for collections, I have been using a small template to quickly allow me to “Re-enter” the property after a sync.

Obviously this is only going to work if you use the Manual Sync method (which I strongly recommend anyway for performance), if you are not sure what I mean by Manual Sync please look on my blog about setting up Simplified Criteria Syntax, I show how to setup a shortcut key for it.

Anyways just go into your DevExpress > Options… > Templates, add a new template (I used xsc) then enter this

Public ReadOnly Property «FieldStart(Enter the property name)»«BlockAnchor»«Link(PropertyName)»«Caret»«FieldEnd»() As «TypeLink(OperandProperty)»
	Get
		Return New «TypeLink(OperandProperty)»(GetNestedName("«Link(PropertyName)»"))
	End Get
End Property
«Target»

 

Then all I did is for the “use” is “In Class”.

So my workflow is basically, CTRL+1 to perform a manual XPO sync, then when the VS errors get listed I just head to the FieldsClass and add whatever fields are “erroring” then move on. :)

Just thought I would share this quickly while I was using it.

Comments  

 
0 # Jim Clay 2010-01-08 07:59
SWEET!!!

Thanks Michael. That will help A LOT!
Reply | Reply with quote | Quote
 
 
0 # Michael Proctor [Dx-Squad] 2010-01-09 12:14
No Worries Jim,

If you have any problems or suggestions for it (other than fixing the Plugin ;) just let us know.
Reply | Reply with quote | Quote
 

Add comment

Although I believe your free to say what you want, please don't abuse either myself or other peoples, be constructive.


Security code
Refresh

Should AussieALF stay bald?




Results

Latest Comments

My Twitter

Follow me on twitter