114 references to XmlMappingConstant
System.Data.Linq (114)
Mapping\MappingSource.cs (104)
166
throw Error.DatabaseNodeNotFound(
XmlMappingConstant
.MappingNamespace);
252
if (!IsInNamespace(reader) || reader.LocalName !=
XmlMappingConstant
.Database) {
257
XmlMappingConstant
.Name,
258
XmlMappingConstant
.Provider
263
dm.DatabaseName = RequiredAttribute(reader,
XmlMappingConstant
.Name);
264
dm.Provider = OptionalAttribute(reader,
XmlMappingConstant
.Provider);
276
case
XmlMappingConstant
.Table:
279
case
XmlMappingConstant
.Function:
288
if (reader.LocalName !=
XmlMappingConstant
.Database) {
289
throw Error.UnexpectedElement(
XmlMappingConstant
.Database, String.Format(System.Globalization.CultureInfo.InvariantCulture, "{0}{1}{2}", reader.Prefix, String.IsNullOrEmpty(reader.Prefix) ? "" : "/", reader.LocalName));
303
return reader.LookupNamespace(reader.Prefix) ==
XmlMappingConstant
.MappingNamespace;
326
if (!IsInNamespace(reader) || reader.LocalName !=
XmlMappingConstant
.Function) {
327
throw Error.UnexpectedElement(
XmlMappingConstant
.Function, String.Format(System.Globalization.CultureInfo.InvariantCulture, "{0}{1}{2}", reader.Prefix, String.IsNullOrEmpty(reader.Prefix) ? "" : "/", reader.LocalName));
331
XmlMappingConstant
.Name,
332
XmlMappingConstant
.Method,
333
XmlMappingConstant
.IsComposable
337
fm.MethodName = RequiredAttribute(reader,
XmlMappingConstant
.Method);
338
fm.Name = OptionalAttribute(reader,
XmlMappingConstant
.Name);
339
fm.IsComposable = OptionalBoolAttribute(reader,
XmlMappingConstant
.IsComposable, false);
351
case
XmlMappingConstant
.Parameter:
354
case
XmlMappingConstant
.ElementType:
357
case
XmlMappingConstant
.Return:
377
if (!IsInNamespace(reader) || reader.LocalName !=
XmlMappingConstant
.Return) {
378
throw Error.UnexpectedElement(
XmlMappingConstant
.Return, String.Format(System.Globalization.CultureInfo.InvariantCulture, "{0}{1}{2}", reader.Prefix, String.IsNullOrEmpty(reader.Prefix) ? "" : "/", reader.LocalName));
382
XmlMappingConstant
.DbType
386
rm.DbType = OptionalAttribute(reader,
XmlMappingConstant
.DbType);
395
if (!IsInNamespace(reader) || reader.LocalName !=
XmlMappingConstant
.Parameter) {
396
throw Error.UnexpectedElement(
XmlMappingConstant
.Parameter, String.Format(System.Globalization.CultureInfo.InvariantCulture, "{0}{1}{2}", reader.Prefix, String.IsNullOrEmpty(reader.Prefix) ? "" : "/", reader.LocalName));
400
XmlMappingConstant
.Name,
401
XmlMappingConstant
.DbType,
402
XmlMappingConstant
.Parameter,
403
XmlMappingConstant
.Direction
407
pm.Name = RequiredAttribute(reader,
XmlMappingConstant
.Name);
408
pm.ParameterName = RequiredAttribute(reader,
XmlMappingConstant
.Parameter);
409
pm.DbType = OptionalAttribute(reader,
XmlMappingConstant
.DbType);
410
pm.XmlDirection = OptionalAttribute(reader,
XmlMappingConstant
.Direction);
419
if (!IsInNamespace(reader) || reader.LocalName !=
XmlMappingConstant
.Table) {
420
throw Error.UnexpectedElement(
XmlMappingConstant
.Table, String.Format(System.Globalization.CultureInfo.InvariantCulture, "{0}{1}{2}", reader.Prefix, String.IsNullOrEmpty(reader.Prefix) ? "" : "/", reader.LocalName));
424
XmlMappingConstant
.Name,
425
XmlMappingConstant
.Member
429
tm.TableName = OptionalAttribute(reader,
XmlMappingConstant
.Name);
430
tm.Member = OptionalAttribute(reader,
XmlMappingConstant
.Member);
442
case
XmlMappingConstant
.Type:
454
if (reader.LocalName !=
XmlMappingConstant
.Table) {
455
throw Error.UnexpectedElement(
XmlMappingConstant
.Table, String.Format(System.Globalization.CultureInfo.InvariantCulture, "{0}{1}{2}", reader.Prefix, String.IsNullOrEmpty(reader.Prefix) ? "" : "/", reader.LocalName));
470
if (!IsInNamespace(reader) || reader.LocalName !=
XmlMappingConstant
.ElementType) {
471
throw Error.UnexpectedElement(
XmlMappingConstant
.Type, String.Format(System.Globalization.CultureInfo.InvariantCulture, "{0}{1}{2}", reader.Prefix, String.IsNullOrEmpty(reader.Prefix) ? "" : "/", reader.LocalName));
479
if (!IsInNamespace(reader) || reader.LocalName !=
XmlMappingConstant
.Type) {
480
throw Error.UnexpectedElement(
XmlMappingConstant
.Type, String.Format(System.Globalization.CultureInfo.InvariantCulture, "{0}{1}{2}", reader.Prefix, String.IsNullOrEmpty(reader.Prefix) ? "" : "/", reader.LocalName));
488
XmlMappingConstant
.Name,
489
XmlMappingConstant
.InheritanceCode,
490
XmlMappingConstant
.IsInheritanceDefault
495
tm.Name = RequiredAttribute(reader,
XmlMappingConstant
.Name);
496
tm.InheritanceCode = OptionalAttribute(reader,
XmlMappingConstant
.InheritanceCode);
497
tm.IsInheritanceDefault = OptionalBoolAttribute(reader,
XmlMappingConstant
.IsInheritanceDefault, false);
509
case
XmlMappingConstant
.Type:
512
case
XmlMappingConstant
.Association:
515
case
XmlMappingConstant
.Column:
534
if (!IsInNamespace(reader) || reader.LocalName !=
XmlMappingConstant
.Association) {
535
throw Error.UnexpectedElement(
XmlMappingConstant
.Association, String.Format(System.Globalization.CultureInfo.InvariantCulture, "{0}{1}{2}", reader.Prefix, String.IsNullOrEmpty(reader.Prefix) ? "" : "/", reader.LocalName));
539
XmlMappingConstant
.Name,
540
XmlMappingConstant
.IsForeignKey,
541
XmlMappingConstant
.IsUnique,
542
XmlMappingConstant
.Member,
543
XmlMappingConstant
.OtherKey,
544
XmlMappingConstant
.Storage,
545
XmlMappingConstant
.ThisKey,
546
XmlMappingConstant
.DeleteRule,
547
XmlMappingConstant
.DeleteOnNull,
551
am.DbName = OptionalAttribute(reader,
XmlMappingConstant
.Name);
552
am.IsForeignKey = OptionalBoolAttribute(reader,
XmlMappingConstant
.IsForeignKey, false);
553
am.IsUnique = OptionalBoolAttribute(reader,
XmlMappingConstant
.IsUnique, false);
554
am.MemberName = RequiredAttribute(reader,
XmlMappingConstant
.Member);
555
am.OtherKey = OptionalAttribute(reader,
XmlMappingConstant
.OtherKey);
556
am.StorageMemberName = OptionalAttribute(reader,
XmlMappingConstant
.Storage);
557
am.ThisKey = OptionalAttribute(reader,
XmlMappingConstant
.ThisKey);
558
am.DeleteRule = OptionalAttribute(reader,
XmlMappingConstant
.DeleteRule);
559
am.DeleteOnNull = OptionalBoolAttribute(reader,
XmlMappingConstant
.DeleteOnNull, false);
568
if (!IsInNamespace(reader) || reader.LocalName !=
XmlMappingConstant
.Column) {
569
throw Error.UnexpectedElement(
XmlMappingConstant
.Column, String.Format(System.Globalization.CultureInfo.InvariantCulture, "{0}{1}{2}", reader.Prefix, String.IsNullOrEmpty(reader.Prefix) ? "" : "/", reader.LocalName));
573
XmlMappingConstant
.Name,
574
XmlMappingConstant
.DbType,
575
XmlMappingConstant
.IsDbGenerated,
576
XmlMappingConstant
.IsDiscriminator,
577
XmlMappingConstant
.IsPrimaryKey,
578
XmlMappingConstant
.IsVersion,
579
XmlMappingConstant
.Member,
580
XmlMappingConstant
.Storage,
581
XmlMappingConstant
.Expression,
582
XmlMappingConstant
.CanBeNull,
583
XmlMappingConstant
.UpdateCheck,
584
XmlMappingConstant
.AutoSync
588
cm.DbName = OptionalAttribute(reader,
XmlMappingConstant
.Name);
589
cm.DbType = OptionalAttribute(reader,
XmlMappingConstant
.DbType);
590
cm.IsDbGenerated = OptionalBoolAttribute(reader,
XmlMappingConstant
.IsDbGenerated, false);
591
cm.IsDiscriminator = OptionalBoolAttribute(reader,
XmlMappingConstant
.IsDiscriminator, false);
592
cm.IsPrimaryKey = OptionalBoolAttribute(reader,
XmlMappingConstant
.IsPrimaryKey, false);
593
cm.IsVersion = OptionalBoolAttribute(reader,
XmlMappingConstant
.IsVersion, false);
594
cm.MemberName = RequiredAttribute(reader,
XmlMappingConstant
.Member);
595
cm.StorageMemberName = OptionalAttribute(reader,
XmlMappingConstant
.Storage);
596
cm.Expression = OptionalAttribute(reader,
XmlMappingConstant
.Expression);
597
cm.CanBeNull = OptionalNullableBoolAttribute(reader,
XmlMappingConstant
.CanBeNull);
598
string updateCheck = OptionalAttribute(reader,
XmlMappingConstant
.UpdateCheck);
600
string autoSync = OptionalAttribute(reader,
XmlMappingConstant
.AutoSync);
parent\DbmlShared\Mapping.cs (10)
176
get { return this.isComposable ?
XmlMappingConstant
.True : null; }
284
get { return this.isInheritanceDefault ?
XmlMappingConstant
.True : null; }
344
return this.canBeNull == true ? null :
XmlMappingConstant
.False;
360
get { return this.isPrimaryKey ?
XmlMappingConstant
.True : null; }
370
get { return this.isDBGenerated ?
XmlMappingConstant
.True : null; }
380
get { return this.isVersion ?
XmlMappingConstant
.True : null; }
390
get { return this.isDiscriminator ?
XmlMappingConstant
.True : null; }
452
get { return this.isForeignKey ?
XmlMappingConstant
.True : null; }
457
get { return this.deleteOnNull ?
XmlMappingConstant
.True : null; }
467
get { return this.isUnique ?
XmlMappingConstant
.True : null; }