//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:2.0.50727.4927
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
namespace urn.nhibernate.mapping.Item2.Item2 {
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Diagnostics;
using System.Xml;
using System.Xml.Schema;
using System.Xml.Linq;
using Xml.Schema.Linq;
///
///
/// Regular expression: (meta*, metavalue*, column+)
///
///
public partial class any : XTypedElement, IXMetaData {
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private XTypedList metaField;
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private XTypedList metavalueField;
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private XTypedList columnField;
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private static bool insertDefaultValue = System.Xml.XmlConvert.ToBoolean("true");
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private static bool updateDefaultValue = System.Xml.XmlConvert.ToBoolean("true");
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private static bool optimisticlockDefaultValue = System.Xml.XmlConvert.ToBoolean("true");
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private static bool lazyDefaultValue = System.Xml.XmlConvert.ToBoolean("false");
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
static Dictionary localElementDictionary = new Dictionary();
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private static ContentModelEntity contentModel;
public static explicit operator any(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); }
static any() {
BuildElementDictionary();
contentModel = new SequenceContentModelEntity(new NamedContentModelEntity(XName.Get("meta", "urn:nhibernate-mapping-2.2")), new NamedContentModelEntity(XName.Get("meta-value", "urn:nhibernate-mapping-2.2")), new NamedContentModelEntity(XName.Get("column", "urn:nhibernate-mapping-2.2")));
}
///
///
/// Regular expression: (meta*, metavalue*, column+)
///
///
public any() {
}
///
///
/// Occurrence: optional, repeating
///
///
/// Regular expression: (meta*, metavalue*, column+)
///
///
public IList meta {
get {
if ((this.metaField == null)) {
this.metaField = new XTypedList(this, LinqToXsdTypeManager.Instance, XName.Get("meta", "urn:nhibernate-mapping-2.2"));
}
return this.metaField;
}
set {
if ((value == null)) {
this.metaField = null;
}
else {
if ((this.metaField == null)) {
this.metaField = XTypedList.Initialize(this, LinqToXsdTypeManager.Instance, value, XName.Get("meta", "urn:nhibernate-mapping-2.2"));
}
else {
XTypedServices.SetList(this.metaField, value);
}
}
}
}
///
///
/// Occurrence: optional, repeating
///
///
/// Regular expression: (meta*, metavalue*, column+)
///
///
public IList metavalue {
get {
if ((this.metavalueField == null)) {
this.metavalueField = new XTypedList(this, LinqToXsdTypeManager.Instance, XName.Get("meta-value", "urn:nhibernate-mapping-2.2"));
}
return this.metavalueField;
}
set {
if ((value == null)) {
this.metavalueField = null;
}
else {
if ((this.metavalueField == null)) {
this.metavalueField = XTypedList.Initialize(this, LinqToXsdTypeManager.Instance, value, XName.Get("meta-value", "urn:nhibernate-mapping-2.2"));
}
else {
XTypedServices.SetList(this.metavalueField, value);
}
}
}
}
///
///
/// Occurrence: required, repeating
///
///
/// Regular expression: (meta*, metavalue*, column+)
///
///
public IList column {
get {
if ((this.columnField == null)) {
this.columnField = new XTypedList(this, LinqToXsdTypeManager.Instance, XName.Get("column", "urn:nhibernate-mapping-2.2"));
}
return this.columnField;
}
set {
if ((value == null)) {
this.columnField = null;
}
else {
if ((this.columnField == null)) {
this.columnField = XTypedList.Initialize(this, LinqToXsdTypeManager.Instance, value, XName.Get("column", "urn:nhibernate-mapping-2.2"));
}
else {
XTypedServices.SetList(this.columnField, value);
}
}
}
}
///
///
/// Occurrence: optional
///
///
public string column1 {
get {
XAttribute x = this.Attribute(XName.Get("column", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("column", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: required
///
///
public string idtype {
get {
XAttribute x = this.Attribute(XName.Get("id-type", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("id-type", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string metatype {
get {
XAttribute x = this.Attribute(XName.Get("meta-type", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("meta-type", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: required
///
///
public string name {
get {
XAttribute x = this.Attribute(XName.Get("name", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("name", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string access {
get {
XAttribute x = this.Attribute(XName.Get("access", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("access", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public bool insert {
get {
XAttribute x = this.Attribute(XName.Get("insert", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype, insertDefaultValue);
}
set {
this.SetAttribute(XName.Get("insert", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public bool update {
get {
XAttribute x = this.Attribute(XName.Get("update", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype, updateDefaultValue);
}
set {
this.SetAttribute(XName.Get("update", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string cascade {
get {
XAttribute x = this.Attribute(XName.Get("cascade", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("cascade", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string index {
get {
XAttribute x = this.Attribute(XName.Get("index", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("index", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public bool optimisticlock {
get {
XAttribute x = this.Attribute(XName.Get("optimistic-lock", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype, optimisticlockDefaultValue);
}
set {
this.SetAttribute(XName.Get("optimistic-lock", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public bool lazy {
get {
XAttribute x = this.Attribute(XName.Get("lazy", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype, lazyDefaultValue);
}
set {
this.SetAttribute(XName.Get("lazy", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string node {
get {
XAttribute x = this.Attribute(XName.Get("node", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("node", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
Dictionary IXMetaData.LocalElementsDictionary {
get {
return localElementDictionary;
}
}
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
XName IXMetaData.SchemaName {
get {
return XName.Get("any", "urn:nhibernate-mapping-2.2");
}
}
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
SchemaOrigin IXMetaData.TypeOrigin {
get {
return SchemaOrigin.Element;
}
}
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
ILinqToXsdTypeManager IXMetaData.TypeManager {
get {
return LinqToXsdTypeManager.Instance;
}
}
public void Save(string xmlFile) {
XTypedServices.Save(xmlFile, Untyped);
}
public void Save(System.IO.TextWriter tw) {
XTypedServices.Save(tw, Untyped);
}
public void Save(System.Xml.XmlWriter xmlWriter) {
XTypedServices.Save(xmlWriter, Untyped);
}
public static any Load(string xmlFile) {
return XTypedServices.Load(xmlFile);
}
public static any Load(System.IO.TextReader xmlFile) {
return XTypedServices.Load(xmlFile);
}
public static any Parse(string xml) {
return XTypedServices.Parse(xml);
}
public override XTypedElement Clone() {
return XTypedServices.CloneXTypedElement(this);
}
private static void BuildElementDictionary() {
localElementDictionary.Add(XName.Get("meta", "urn:nhibernate-mapping-2.2"), typeof(meta));
localElementDictionary.Add(XName.Get("meta-value", "urn:nhibernate-mapping-2.2"), typeof(metavalue));
localElementDictionary.Add(XName.Get("column", "urn:nhibernate-mapping-2.2"), typeof(column));
}
ContentModelEntity IXMetaData.GetContentModel() {
return contentModel;
}
}
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (index | listindex), (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?)
///
///
public partial class array : XTypedElement, IXMetaData {
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private XTypedList metaField;
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private XTypedList synchronizeField;
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private static bool inverseDefaultValue = System.Xml.XmlConvert.ToBoolean("false");
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private static bool mutableDefaultValue = System.Xml.XmlConvert.ToBoolean("true");
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private static bool optimisticlockDefaultValue = System.Xml.XmlConvert.ToBoolean("true");
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private static bool embedxmlDefaultValue = System.Xml.XmlConvert.ToBoolean("true");
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
static Dictionary localElementDictionary = new Dictionary();
public static explicit operator array(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); }
static array() {
BuildElementDictionary();
}
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (index | listindex), (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?)
///
///
public array() {
}
///
///
/// Occurrence: optional, repeating
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (index | listindex), (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?)
///
///
public IList meta {
get {
if ((this.metaField == null)) {
this.metaField = new XTypedList(this, LinqToXsdTypeManager.Instance, XName.Get("meta", "urn:nhibernate-mapping-2.2"));
}
return this.metaField;
}
set {
if ((value == null)) {
this.metaField = null;
}
else {
if ((this.metaField == null)) {
this.metaField = XTypedList.Initialize(this, LinqToXsdTypeManager.Instance, value, XName.Get("meta", "urn:nhibernate-mapping-2.2"));
}
else {
XTypedServices.SetList(this.metaField, value);
}
}
}
}
///
///
/// Occurrence: optional
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (index | listindex), (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?)
///
///
public subselect subselect {
get {
XElement x = this.GetElement(XName.Get("subselect", "urn:nhibernate-mapping-2.2"));
return ((subselect)(x));
}
set {
this.SetElement(XName.Get("subselect", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: optional
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (index | listindex), (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?)
///
///
public cache cache {
get {
XElement x = this.GetElement(XName.Get("cache", "urn:nhibernate-mapping-2.2"));
return ((cache)(x));
}
set {
this.SetElement(XName.Get("cache", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: optional, repeating
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (index | listindex), (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?)
///
///
public IList synchronize {
get {
if ((this.synchronizeField == null)) {
this.synchronizeField = new XTypedList(this, LinqToXsdTypeManager.Instance, XName.Get("synchronize", "urn:nhibernate-mapping-2.2"));
}
return this.synchronizeField;
}
set {
if ((value == null)) {
this.synchronizeField = null;
}
else {
if ((this.synchronizeField == null)) {
this.synchronizeField = XTypedList.Initialize(this, LinqToXsdTypeManager.Instance, value, XName.Get("synchronize", "urn:nhibernate-mapping-2.2"));
}
else {
XTypedServices.SetList(this.synchronizeField, value);
}
}
}
}
///
///
/// Occurrence: optional
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (index | listindex), (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?)
///
///
public comment comment {
get {
XElement x = this.GetElement(XName.Get("comment", "urn:nhibernate-mapping-2.2"));
return ((comment)(x));
}
set {
this.SetElement(XName.Get("comment", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: required
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (index | listindex), (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?)
///
///
public key key {
get {
XElement x = this.GetElement(XName.Get("key", "urn:nhibernate-mapping-2.2"));
return ((key)(x));
}
set {
this.SetElement(XName.Get("key", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: required, choice
///
///
/// Setter: Appends
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (index | listindex), (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?)
///
///
public index index {
get {
XElement x = this.GetElement(XName.Get("index", "urn:nhibernate-mapping-2.2"));
return ((index)(x));
}
set {
this.SetElement(XName.Get("index", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: required, choice
///
///
/// Setter: Appends
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (index | listindex), (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?)
///
///
public listindex listindex {
get {
XElement x = this.GetElement(XName.Get("list-index", "urn:nhibernate-mapping-2.2"));
return ((listindex)(x));
}
set {
this.SetElement(XName.Get("list-index", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: required, choice
///
///
/// Setter: Appends
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (index | listindex), (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?)
///
///
public element element {
get {
XElement x = this.GetElement(XName.Get("element", "urn:nhibernate-mapping-2.2"));
return ((element)(x));
}
set {
this.SetElement(XName.Get("element", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: required, choice
///
///
/// Setter: Appends
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (index | listindex), (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?)
///
///
public onetomany onetomany {
get {
XElement x = this.GetElement(XName.Get("one-to-many", "urn:nhibernate-mapping-2.2"));
return ((onetomany)(x));
}
set {
this.SetElement(XName.Get("one-to-many", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: required, choice
///
///
/// Setter: Appends
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (index | listindex), (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?)
///
///
public manytomany manytomany {
get {
XElement x = this.GetElement(XName.Get("many-to-many", "urn:nhibernate-mapping-2.2"));
return ((manytomany)(x));
}
set {
this.SetElement(XName.Get("many-to-many", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: required, choice
///
///
/// Setter: Appends
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (index | listindex), (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?)
///
///
public compositeelement compositeelement {
get {
XElement x = this.GetElement(XName.Get("composite-element", "urn:nhibernate-mapping-2.2"));
return ((compositeelement)(x));
}
set {
this.SetElement(XName.Get("composite-element", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: required, choice
///
///
/// Setter: Appends
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (index | listindex), (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?)
///
///
public manytoany manytoany {
get {
XElement x = this.GetElement(XName.Get("many-to-any", "urn:nhibernate-mapping-2.2"));
return ((manytoany)(x));
}
set {
this.SetElement(XName.Get("many-to-any", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: optional
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (index | listindex), (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?)
///
///
public loader loader {
get {
XElement x = this.GetElement(XName.Get("loader", "urn:nhibernate-mapping-2.2"));
return ((loader)(x));
}
set {
this.SetElement(XName.Get("loader", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: optional
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (index | listindex), (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?)
///
///
public sqlinsert sqlinsert {
get {
XElement x = this.GetElement(XName.Get("sql-insert", "urn:nhibernate-mapping-2.2"));
return ((sqlinsert)(x));
}
set {
this.SetElement(XName.Get("sql-insert", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: optional
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (index | listindex), (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?)
///
///
public sqlupdate sqlupdate {
get {
XElement x = this.GetElement(XName.Get("sql-update", "urn:nhibernate-mapping-2.2"));
return ((sqlupdate)(x));
}
set {
this.SetElement(XName.Get("sql-update", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: optional
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (index | listindex), (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?)
///
///
public sqldelete sqldelete {
get {
XElement x = this.GetElement(XName.Get("sql-delete", "urn:nhibernate-mapping-2.2"));
return ((sqldelete)(x));
}
set {
this.SetElement(XName.Get("sql-delete", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: optional
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (index | listindex), (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?)
///
///
public sqldeleteall sqldeleteall {
get {
XElement x = this.GetElement(XName.Get("sql-delete-all", "urn:nhibernate-mapping-2.2"));
return ((sqldeleteall)(x));
}
set {
this.SetElement(XName.Get("sql-delete-all", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: required
///
///
public string name {
get {
XAttribute x = this.Attribute(XName.Get("name", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("name", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string access {
get {
XAttribute x = this.Attribute(XName.Get("access", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("access", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string table {
get {
XAttribute x = this.Attribute(XName.Get("table", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("table", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string schema {
get {
XAttribute x = this.Attribute(XName.Get("schema", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("schema", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string catalog {
get {
XAttribute x = this.Attribute(XName.Get("catalog", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("catalog", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string subselect1 {
get {
XAttribute x = this.Attribute(XName.Get("subselect", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("subselect", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public bool inverse {
get {
XAttribute x = this.Attribute(XName.Get("inverse", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype, inverseDefaultValue);
}
set {
this.SetAttribute(XName.Get("inverse", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public bool mutable {
get {
XAttribute x = this.Attribute(XName.Get("mutable", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype, mutableDefaultValue);
}
set {
this.SetAttribute(XName.Get("mutable", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string elementclass {
get {
XAttribute x = this.Attribute(XName.Get("element-class", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("element-class", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string cascade {
get {
XAttribute x = this.Attribute(XName.Get("cascade", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("cascade", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string @where {
get {
XAttribute x = this.Attribute(XName.Get("where", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("where", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public System.Nullable batchsize {
get {
XAttribute x = this.Attribute(XName.Get("batch-size", ""));
if ((x == null)) {
return null;
}
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int).Datatype);
}
set {
this.SetAttribute(XName.Get("batch-size", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string outerjoin {
get {
XAttribute x = this.Attribute(XName.Get("outer-join", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("outer-join", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string fetch {
get {
XAttribute x = this.Attribute(XName.Get("fetch", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("fetch", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string persister {
get {
XAttribute x = this.Attribute(XName.Get("persister", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("persister", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string collectiontype {
get {
XAttribute x = this.Attribute(XName.Get("collection-type", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("collection-type", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string check {
get {
XAttribute x = this.Attribute(XName.Get("check", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("check", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public bool optimisticlock {
get {
XAttribute x = this.Attribute(XName.Get("optimistic-lock", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype, optimisticlockDefaultValue);
}
set {
this.SetAttribute(XName.Get("optimistic-lock", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string node {
get {
XAttribute x = this.Attribute(XName.Get("node", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("node", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public bool embedxml {
get {
XAttribute x = this.Attribute(XName.Get("embed-xml", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype, embedxmlDefaultValue);
}
set {
this.SetAttribute(XName.Get("embed-xml", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype);
}
}
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
Dictionary IXMetaData.LocalElementsDictionary {
get {
return localElementDictionary;
}
}
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
XName IXMetaData.SchemaName {
get {
return XName.Get("array", "urn:nhibernate-mapping-2.2");
}
}
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
SchemaOrigin IXMetaData.TypeOrigin {
get {
return SchemaOrigin.Element;
}
}
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
ILinqToXsdTypeManager IXMetaData.TypeManager {
get {
return LinqToXsdTypeManager.Instance;
}
}
public void Save(string xmlFile) {
XTypedServices.Save(xmlFile, Untyped);
}
public void Save(System.IO.TextWriter tw) {
XTypedServices.Save(tw, Untyped);
}
public void Save(System.Xml.XmlWriter xmlWriter) {
XTypedServices.Save(xmlWriter, Untyped);
}
public static array Load(string xmlFile) {
return XTypedServices.Load(xmlFile);
}
public static array Load(System.IO.TextReader xmlFile) {
return XTypedServices.Load(xmlFile);
}
public static array Parse(string xml) {
return XTypedServices.Parse(xml);
}
public override XTypedElement Clone() {
return XTypedServices.CloneXTypedElement(this);
}
private static void BuildElementDictionary() {
localElementDictionary.Add(XName.Get("meta", "urn:nhibernate-mapping-2.2"), typeof(meta));
localElementDictionary.Add(XName.Get("subselect", "urn:nhibernate-mapping-2.2"), typeof(subselect));
localElementDictionary.Add(XName.Get("cache", "urn:nhibernate-mapping-2.2"), typeof(cache));
localElementDictionary.Add(XName.Get("synchronize", "urn:nhibernate-mapping-2.2"), typeof(synchronize));
localElementDictionary.Add(XName.Get("comment", "urn:nhibernate-mapping-2.2"), typeof(comment));
localElementDictionary.Add(XName.Get("key", "urn:nhibernate-mapping-2.2"), typeof(key));
localElementDictionary.Add(XName.Get("index", "urn:nhibernate-mapping-2.2"), typeof(index));
localElementDictionary.Add(XName.Get("list-index", "urn:nhibernate-mapping-2.2"), typeof(listindex));
localElementDictionary.Add(XName.Get("element", "urn:nhibernate-mapping-2.2"), typeof(element));
localElementDictionary.Add(XName.Get("one-to-many", "urn:nhibernate-mapping-2.2"), typeof(onetomany));
localElementDictionary.Add(XName.Get("many-to-many", "urn:nhibernate-mapping-2.2"), typeof(manytomany));
localElementDictionary.Add(XName.Get("composite-element", "urn:nhibernate-mapping-2.2"), typeof(compositeelement));
localElementDictionary.Add(XName.Get("many-to-any", "urn:nhibernate-mapping-2.2"), typeof(manytoany));
localElementDictionary.Add(XName.Get("loader", "urn:nhibernate-mapping-2.2"), typeof(loader));
localElementDictionary.Add(XName.Get("sql-insert", "urn:nhibernate-mapping-2.2"), typeof(sqlinsert));
localElementDictionary.Add(XName.Get("sql-update", "urn:nhibernate-mapping-2.2"), typeof(sqlupdate));
localElementDictionary.Add(XName.Get("sql-delete", "urn:nhibernate-mapping-2.2"), typeof(sqldelete));
localElementDictionary.Add(XName.Get("sql-delete-all", "urn:nhibernate-mapping-2.2"), typeof(sqldeleteall));
}
ContentModelEntity IXMetaData.GetContentModel() {
return ContentModelEntity.Default;
}
}
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?, filter*)
///
///
public partial class bag : XTypedElement, IXMetaData {
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private XTypedList metaField;
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private XTypedList synchronizeField;
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private XTypedList filterField;
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private static bool inverseDefaultValue = System.Xml.XmlConvert.ToBoolean("false");
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private static bool mutableDefaultValue = System.Xml.XmlConvert.ToBoolean("true");
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private static bool optimisticlockDefaultValue = System.Xml.XmlConvert.ToBoolean("true");
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private static bool embedxmlDefaultValue = System.Xml.XmlConvert.ToBoolean("true");
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
static Dictionary localElementDictionary = new Dictionary();
public static explicit operator bag(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); }
static bag() {
BuildElementDictionary();
}
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?, filter*)
///
///
public bag() {
}
///
///
/// Occurrence: optional, repeating
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?, filter*)
///
///
public IList meta {
get {
if ((this.metaField == null)) {
this.metaField = new XTypedList(this, LinqToXsdTypeManager.Instance, XName.Get("meta", "urn:nhibernate-mapping-2.2"));
}
return this.metaField;
}
set {
if ((value == null)) {
this.metaField = null;
}
else {
if ((this.metaField == null)) {
this.metaField = XTypedList.Initialize(this, LinqToXsdTypeManager.Instance, value, XName.Get("meta", "urn:nhibernate-mapping-2.2"));
}
else {
XTypedServices.SetList(this.metaField, value);
}
}
}
}
///
///
/// Occurrence: optional
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?, filter*)
///
///
public subselect subselect {
get {
XElement x = this.GetElement(XName.Get("subselect", "urn:nhibernate-mapping-2.2"));
return ((subselect)(x));
}
set {
this.SetElement(XName.Get("subselect", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: optional
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?, filter*)
///
///
public cache cache {
get {
XElement x = this.GetElement(XName.Get("cache", "urn:nhibernate-mapping-2.2"));
return ((cache)(x));
}
set {
this.SetElement(XName.Get("cache", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: optional, repeating
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?, filter*)
///
///
public IList synchronize {
get {
if ((this.synchronizeField == null)) {
this.synchronizeField = new XTypedList(this, LinqToXsdTypeManager.Instance, XName.Get("synchronize", "urn:nhibernate-mapping-2.2"));
}
return this.synchronizeField;
}
set {
if ((value == null)) {
this.synchronizeField = null;
}
else {
if ((this.synchronizeField == null)) {
this.synchronizeField = XTypedList.Initialize(this, LinqToXsdTypeManager.Instance, value, XName.Get("synchronize", "urn:nhibernate-mapping-2.2"));
}
else {
XTypedServices.SetList(this.synchronizeField, value);
}
}
}
}
///
///
/// Occurrence: optional
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?, filter*)
///
///
public comment comment {
get {
XElement x = this.GetElement(XName.Get("comment", "urn:nhibernate-mapping-2.2"));
return ((comment)(x));
}
set {
this.SetElement(XName.Get("comment", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: required
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?, filter*)
///
///
public key key {
get {
XElement x = this.GetElement(XName.Get("key", "urn:nhibernate-mapping-2.2"));
return ((key)(x));
}
set {
this.SetElement(XName.Get("key", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: required, choice
///
///
/// Setter: Appends
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?, filter*)
///
///
public element element {
get {
XElement x = this.GetElement(XName.Get("element", "urn:nhibernate-mapping-2.2"));
return ((element)(x));
}
set {
this.SetElement(XName.Get("element", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: required, choice
///
///
/// Setter: Appends
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?, filter*)
///
///
public onetomany onetomany {
get {
XElement x = this.GetElement(XName.Get("one-to-many", "urn:nhibernate-mapping-2.2"));
return ((onetomany)(x));
}
set {
this.SetElement(XName.Get("one-to-many", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: required, choice
///
///
/// Setter: Appends
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?, filter*)
///
///
public manytomany manytomany {
get {
XElement x = this.GetElement(XName.Get("many-to-many", "urn:nhibernate-mapping-2.2"));
return ((manytomany)(x));
}
set {
this.SetElement(XName.Get("many-to-many", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: required, choice
///
///
/// Setter: Appends
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?, filter*)
///
///
public compositeelement compositeelement {
get {
XElement x = this.GetElement(XName.Get("composite-element", "urn:nhibernate-mapping-2.2"));
return ((compositeelement)(x));
}
set {
this.SetElement(XName.Get("composite-element", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: required, choice
///
///
/// Setter: Appends
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?, filter*)
///
///
public manytoany manytoany {
get {
XElement x = this.GetElement(XName.Get("many-to-any", "urn:nhibernate-mapping-2.2"));
return ((manytoany)(x));
}
set {
this.SetElement(XName.Get("many-to-any", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: optional
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?, filter*)
///
///
public loader loader {
get {
XElement x = this.GetElement(XName.Get("loader", "urn:nhibernate-mapping-2.2"));
return ((loader)(x));
}
set {
this.SetElement(XName.Get("loader", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: optional
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?, filter*)
///
///
public sqlinsert sqlinsert {
get {
XElement x = this.GetElement(XName.Get("sql-insert", "urn:nhibernate-mapping-2.2"));
return ((sqlinsert)(x));
}
set {
this.SetElement(XName.Get("sql-insert", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: optional
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?, filter*)
///
///
public sqlupdate sqlupdate {
get {
XElement x = this.GetElement(XName.Get("sql-update", "urn:nhibernate-mapping-2.2"));
return ((sqlupdate)(x));
}
set {
this.SetElement(XName.Get("sql-update", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: optional
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?, filter*)
///
///
public sqldelete sqldelete {
get {
XElement x = this.GetElement(XName.Get("sql-delete", "urn:nhibernate-mapping-2.2"));
return ((sqldelete)(x));
}
set {
this.SetElement(XName.Get("sql-delete", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: optional
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?, filter*)
///
///
public sqldeleteall sqldeleteall {
get {
XElement x = this.GetElement(XName.Get("sql-delete-all", "urn:nhibernate-mapping-2.2"));
return ((sqldeleteall)(x));
}
set {
this.SetElement(XName.Get("sql-delete-all", "urn:nhibernate-mapping-2.2"), value);
}
}
///
///
/// Occurrence: optional, repeating
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, key, (element | onetomany | manytomany | compositeelement | manytoany), loader?, sqlinsert?, sqlupdate?, sqldelete?, sqldeleteall?, filter*)
///
///
public IList filter {
get {
if ((this.filterField == null)) {
this.filterField = new XTypedList(this, LinqToXsdTypeManager.Instance, XName.Get("filter", "urn:nhibernate-mapping-2.2"));
}
return this.filterField;
}
set {
if ((value == null)) {
this.filterField = null;
}
else {
if ((this.filterField == null)) {
this.filterField = XTypedList.Initialize(this, LinqToXsdTypeManager.Instance, value, XName.Get("filter", "urn:nhibernate-mapping-2.2"));
}
else {
XTypedServices.SetList(this.filterField, value);
}
}
}
}
///
///
/// Occurrence: required
///
///
public string name {
get {
XAttribute x = this.Attribute(XName.Get("name", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("name", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string access {
get {
XAttribute x = this.Attribute(XName.Get("access", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("access", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string table {
get {
XAttribute x = this.Attribute(XName.Get("table", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("table", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string schema {
get {
XAttribute x = this.Attribute(XName.Get("schema", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("schema", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string catalog {
get {
XAttribute x = this.Attribute(XName.Get("catalog", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("catalog", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string subselect1 {
get {
XAttribute x = this.Attribute(XName.Get("subselect", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("subselect", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string lazy {
get {
XAttribute x = this.Attribute(XName.Get("lazy", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("lazy", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public bool inverse {
get {
XAttribute x = this.Attribute(XName.Get("inverse", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype, inverseDefaultValue);
}
set {
this.SetAttribute(XName.Get("inverse", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public bool mutable {
get {
XAttribute x = this.Attribute(XName.Get("mutable", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype, mutableDefaultValue);
}
set {
this.SetAttribute(XName.Get("mutable", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string cascade {
get {
XAttribute x = this.Attribute(XName.Get("cascade", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("cascade", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string orderby {
get {
XAttribute x = this.Attribute(XName.Get("order-by", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("order-by", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string @where {
get {
XAttribute x = this.Attribute(XName.Get("where", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("where", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public System.Nullable batchsize {
get {
XAttribute x = this.Attribute(XName.Get("batch-size", ""));
if ((x == null)) {
return null;
}
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int).Datatype);
}
set {
this.SetAttribute(XName.Get("batch-size", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string outerjoin {
get {
XAttribute x = this.Attribute(XName.Get("outer-join", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("outer-join", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string fetch {
get {
XAttribute x = this.Attribute(XName.Get("fetch", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("fetch", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string persister {
get {
XAttribute x = this.Attribute(XName.Get("persister", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("persister", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string collectiontype {
get {
XAttribute x = this.Attribute(XName.Get("collection-type", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("collection-type", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string check {
get {
XAttribute x = this.Attribute(XName.Get("check", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("check", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public bool optimisticlock {
get {
XAttribute x = this.Attribute(XName.Get("optimistic-lock", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype, optimisticlockDefaultValue);
}
set {
this.SetAttribute(XName.Get("optimistic-lock", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string node {
get {
XAttribute x = this.Attribute(XName.Get("node", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("node", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public bool embedxml {
get {
XAttribute x = this.Attribute(XName.Get("embed-xml", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype, embedxmlDefaultValue);
}
set {
this.SetAttribute(XName.Get("embed-xml", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype);
}
}
///
///
/// The concrete collection should use a generic version or an object-based version.
///
///
/// Occurrence: optional
///
///
public System.Nullable generic {
get {
XAttribute x = this.Attribute(XName.Get("generic", ""));
if ((x == null)) {
return null;
}
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype);
}
set {
this.SetAttribute(XName.Get("generic", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean).Datatype);
}
}
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
Dictionary IXMetaData.LocalElementsDictionary {
get {
return localElementDictionary;
}
}
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
XName IXMetaData.SchemaName {
get {
return XName.Get("bag", "urn:nhibernate-mapping-2.2");
}
}
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
SchemaOrigin IXMetaData.TypeOrigin {
get {
return SchemaOrigin.Element;
}
}
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
ILinqToXsdTypeManager IXMetaData.TypeManager {
get {
return LinqToXsdTypeManager.Instance;
}
}
public void Save(string xmlFile) {
XTypedServices.Save(xmlFile, Untyped);
}
public void Save(System.IO.TextWriter tw) {
XTypedServices.Save(tw, Untyped);
}
public void Save(System.Xml.XmlWriter xmlWriter) {
XTypedServices.Save(xmlWriter, Untyped);
}
public static bag Load(string xmlFile) {
return XTypedServices.Load(xmlFile);
}
public static bag Load(System.IO.TextReader xmlFile) {
return XTypedServices.Load(xmlFile);
}
public static bag Parse(string xml) {
return XTypedServices.Parse(xml);
}
public override XTypedElement Clone() {
return XTypedServices.CloneXTypedElement(this);
}
private static void BuildElementDictionary() {
localElementDictionary.Add(XName.Get("meta", "urn:nhibernate-mapping-2.2"), typeof(meta));
localElementDictionary.Add(XName.Get("subselect", "urn:nhibernate-mapping-2.2"), typeof(subselect));
localElementDictionary.Add(XName.Get("cache", "urn:nhibernate-mapping-2.2"), typeof(cache));
localElementDictionary.Add(XName.Get("synchronize", "urn:nhibernate-mapping-2.2"), typeof(synchronize));
localElementDictionary.Add(XName.Get("comment", "urn:nhibernate-mapping-2.2"), typeof(comment));
localElementDictionary.Add(XName.Get("key", "urn:nhibernate-mapping-2.2"), typeof(key));
localElementDictionary.Add(XName.Get("element", "urn:nhibernate-mapping-2.2"), typeof(element));
localElementDictionary.Add(XName.Get("one-to-many", "urn:nhibernate-mapping-2.2"), typeof(onetomany));
localElementDictionary.Add(XName.Get("many-to-many", "urn:nhibernate-mapping-2.2"), typeof(manytomany));
localElementDictionary.Add(XName.Get("composite-element", "urn:nhibernate-mapping-2.2"), typeof(compositeelement));
localElementDictionary.Add(XName.Get("many-to-any", "urn:nhibernate-mapping-2.2"), typeof(manytoany));
localElementDictionary.Add(XName.Get("loader", "urn:nhibernate-mapping-2.2"), typeof(loader));
localElementDictionary.Add(XName.Get("sql-insert", "urn:nhibernate-mapping-2.2"), typeof(sqlinsert));
localElementDictionary.Add(XName.Get("sql-update", "urn:nhibernate-mapping-2.2"), typeof(sqlupdate));
localElementDictionary.Add(XName.Get("sql-delete", "urn:nhibernate-mapping-2.2"), typeof(sqldelete));
localElementDictionary.Add(XName.Get("sql-delete-all", "urn:nhibernate-mapping-2.2"), typeof(sqldeleteall));
localElementDictionary.Add(XName.Get("filter", "urn:nhibernate-mapping-2.2"), typeof(filter));
}
ContentModelEntity IXMetaData.GetContentModel() {
return ContentModelEntity.Default;
}
}
public partial class cache : XTypedElement, IXMetaData {
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private static string includeDefaultValue = "all";
public static explicit operator cache(XElement xe) { return XTypedServices.ToXTypedElement(xe,LinqToXsdTypeManager.Instance as ILinqToXsdTypeManager); }
public cache() {
}
///
///
/// Occurrence: required
///
///
public string usage {
get {
XAttribute x = this.Attribute(XName.Get("usage", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("usage", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string region {
get {
XAttribute x = this.Attribute(XName.Get("region", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
set {
this.SetAttribute(XName.Get("region", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
///
///
/// Occurrence: optional
///
///
public string include {
get {
XAttribute x = this.Attribute(XName.Get("include", ""));
return XTypedServices.ParseValue(x, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype, includeDefaultValue);
}
set {
this.SetAttribute(XName.Get("include", ""), value, XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String).Datatype);
}
}
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
XName IXMetaData.SchemaName {
get {
return XName.Get("cache", "urn:nhibernate-mapping-2.2");
}
}
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
SchemaOrigin IXMetaData.TypeOrigin {
get {
return SchemaOrigin.Element;
}
}
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
ILinqToXsdTypeManager IXMetaData.TypeManager {
get {
return LinqToXsdTypeManager.Instance;
}
}
public void Save(string xmlFile) {
XTypedServices.Save(xmlFile, Untyped);
}
public void Save(System.IO.TextWriter tw) {
XTypedServices.Save(tw, Untyped);
}
public void Save(System.Xml.XmlWriter xmlWriter) {
XTypedServices.Save(xmlWriter, Untyped);
}
public static cache Load(string xmlFile) {
return XTypedServices.Load(xmlFile);
}
public static cache Load(System.IO.TextReader xmlFile) {
return XTypedServices.Load(xmlFile);
}
public static cache Parse(string xml) {
return XTypedServices.Parse(xml);
}
public override XTypedElement Clone() {
return XTypedServices.CloneXTypedElement(this);
}
ContentModelEntity IXMetaData.GetContentModel() {
return ContentModelEntity.Default;
}
}
///
///
/// Regular expression: (meta*, subselect?, cache?, synchronize*, comment?, tuplizer*, (id | compositeid), discriminator?, naturalid?, (version | timestamp)?, (property | manytoone | onetoone | component | dynamiccomponent | properties | any | map | set | list | bag | idbag | array | primitivearray)*, ((join*, subclass*)|joinedsubclass* | unionsubclass*), loader?, sqlinsert?, sqlupdate?, sqldelete?, filter*, resultset*, (query | sqlquery)*)
///
///
public partial class @class : XTypedElement, IXMetaData {
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private XTypedList metaField;
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private XTypedList synchronizeField;
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private XTypedList tuplizerField;
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private XTypedList propertyField;
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private XTypedList manytooneField;
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private XTypedList onetooneField;
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private XTypedList componentField;
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private XTypedList dynamiccomponentField;
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private XTypedList propertiesField;
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private XTypedList anyField;
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private XTypedList