[fdo-users] How to attach/detach a property from a propertyvalues of IInserCmd
Romica Dascalescu
Romica.Dascalescu at autodesk.com
Mon Jul 9 08:16:34 PDT 2012
So we have:
public class DataValue : LiteralValue
{
public virtual void SetNull();
}
public class GeometryValue : LiteralValue
{
public void SetNull();
}
public class PropertyValue : Disposable
{
public ValueExpression Value { get; set; }
}
public class Expression : Disposable
{
public ExpressionItemType ExpressionType { get; }
}
PropertyValue mypVal=...;
ValueExpression vexp = mypVal.Value;
switch (vexp.ExpressionType)
{
case ExpressionItemType_DataValue:
{
DataValue dv = vexp as DataValue;
dv.SetNull();
}
break;
case ExpressionItemType_GeometryValue:
{
GeometryValue gv = vexp as GeometryValue;
gv.SetNull();
}
break;
}
Or in case FDO 3.4 do not have ExpressionItemType :
PropertyValue mypVal=...;
ValueExpression vexp = mypVal.Value;
DataValue dv = vexp as DataValue;
if (dv != null){
dv.SetNull();
}else{
GeometryValue gv = vexp as GeometryValue;
if (gv != null)
gv.SetNull();
}
Romy.
________________________________________
From: fdo-users-bounces at lists.osgeo.org [fdo-users-bounces at lists.osgeo.org] on behalf of Ray [ray.wu at efacec.com]
Sent: Monday, July 09, 2012 11:03 AM
To: fdo-users at lists.osgeo.org
Subject: Re: [fdo-users] How to attach/detach a property from a propertyvalues of IInserCmd
Hi Romy,
I don't see a SetNull() method in either PropertyValue or PropertyValues. I
am using FDO 3.4 and .NET API.
Thanks,
Ray
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-attach-detach-a-property-from-a-propertyvalues-of-IInserCmd-tp4986964p4986975.html
Sent from the FDO Users mailing list archive at Nabble.com.
_______________________________________________
fdo-users mailing list
fdo-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fdo-users
More information about the fdo-users
mailing list