コード例 #1
0
        private static void GetPropValues(
            DataObject obj,
            MetadataProperty metaProp,
            out MetadataProperty prop1,
            out object value1,
            out MetadataProperty prop2,
            out object value2)
        {
            value1 = (object)null;
            value2 = (object)null;
            int num = obj.SavePropertyValue(metaProp, ref value1, ref value2);

            prop1 = metaProp;
            prop2 = num > 1 ? metaProp.Association.Selector : (MetadataProperty)null;
        }
コード例 #2
0
        private static void CopyPropToParam(
            DataObject obj,
            MetadataProperty metaProp,
            object[] values,
            ref int index)
        {
            object obj1    = (object)null;
            object exValue = (object)null;
            int    num     = obj.SavePropertyValue(metaProp, ref obj1, ref exValue);

            values[index++] = obj1 ?? (object)DBNull.Value;
            if (num <= 1)
            {
                return;
            }
            values[index++] = exValue ?? (object)DBNull.Value;
        }