Definition at line 292 of file NewDiffgramGen.cs.
293 {
295 text =
col.GetColumnValueAsString(
row, version);
297 {
298 if (
col.ColumnMapping == MappingType.SimpleContent)
299 {
301 }
302 return;
303 }
305 switch (
col.ColumnMapping)
306 {
307 case MappingType.Attribute:
309 break;
310 case MappingType.Hidden:
312 break;
313 case MappingType.SimpleContent:
315 break;
316 case MappingType.Element:
317 {
318 bool flag = true;
321 {
323 flag = false;
324 }
326 if (!
col.IsCustomType)
327 {
329 {
331 }
333 }
335 {
336 if (
col.IsValueCustomTypeInstance(
obj))
337 {
338 if (!flag &&
obj.GetType() !=
col.DataType)
339 {
341 }
342 if (!flag)
343 {
345 }
346 else
347 {
348 if (
obj.GetType() !=
col.DataType)
349 {
350 throw ExceptionBuilder.PolymorphismNotSupported(
type.AssemblyQualifiedName);
351 }
355 }
356 }
357 else
358 {
360 {
362 }
364 {
366 }
367 else
368 {
369 string value =
"xs:" + XmlTreeGen.XmlDataTypeName(
type);
372 }
374 {
376 }
377 else
378 {
380 }
381 }
382 }
383 if (!flag)
384 {
386 }
387 break;
388 }
389 }
390 }
static string GetQualifiedName(Type type)
static bool IsObjectSqlNull(object value)
static bool IsSqlType(StorageType storageType)
void WriteString(string? text)
void WriteAttributeString(string localName, string? ns, string? value)
void WriteStartElement(string localName, string? ns)
References System.Data.NewDiffgramGen._xmlw, System.Xml.Dictionary, System.Data.Common.DataStorage.GetQualifiedName(), System.Type.GetType(), System.Data.Common.DataStorage.IsObjectSqlNull(), System.Data.Common.DataStorage.IsSqlType(), System.obj, System.Data.ExceptionBuilder.PolymorphismNotSupported(), System.prefix, System.Data.XmlDataTreeWriter.PreserveSpace(), System.text, System.type, System.DBNull.Value, System.value, System.Xml.XmlWriter.WriteAttributeString(), System.Xml.XmlWriter.WriteEndElement(), System.Xml.XmlWriter.WriteStartElement(), System.Xml.XmlWriter.WriteString(), and System.Data.XmlTreeGen.XmlDataTypeName().
Referenced by System.Data.NewDiffgramGen.GenerateRow().