//------------------------------------------------------------------------------
// <autogenerated>
//     This code was generated by a tool.
//     Runtime Version: 1.1.4322.2032
//
//     Changes to this file may cause incorrect behavior and will be lost if 
//     the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------

namespace Seguridad.DataSetFT {
    using System;
    using System.Data;
    using System.Xml;
    using System.Runtime.Serialization;
    
    
    [Serializable()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Diagnostics.DebuggerStepThrough()]
    [System.ComponentModel.ToolboxItem(true)]
    public class DSUsuarioWeb : DataSet {
        
        private UsuarioWebDataTable tableUsuarioWeb;
        
        public DSUsuarioWeb() {
            this.InitClass();
            System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
            this.Tables.CollectionChanged += schemaChangedHandler;
            this.Relations.CollectionChanged += schemaChangedHandler;
        }
        
        protected DSUsuarioWeb(SerializationInfo info, StreamingContext context) {
            string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
            if ((strSchema != null)) {
                DataSet ds = new DataSet();
                ds.ReadXmlSchema(new XmlTextReader(new System.IO.StringReader(strSchema)));
                if ((ds.Tables["UsuarioWeb"] != null)) {
                    this.Tables.Add(new UsuarioWebDataTable(ds.Tables["UsuarioWeb"]));
                }
                this.DataSetName = ds.DataSetName;
                this.Prefix = ds.Prefix;
                this.Namespace = ds.Namespace;
                this.Locale = ds.Locale;
                this.CaseSensitive = ds.CaseSensitive;
                this.EnforceConstraints = ds.EnforceConstraints;
                this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
                this.InitVars();
            }
            else {
                this.InitClass();
            }
            this.GetSerializationData(info, context);
            System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
            this.Tables.CollectionChanged += schemaChangedHandler;
            this.Relations.CollectionChanged += schemaChangedHandler;
        }
        
        [System.ComponentModel.Browsable(false)]
        [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
        public UsuarioWebDataTable UsuarioWeb {
            get {
                return this.tableUsuarioWeb;
            }
        }
        
        public override DataSet Clone() {
            DSUsuarioWeb cln = ((DSUsuarioWeb)(base.Clone()));
            cln.InitVars();
            return cln;
        }
        
        protected override bool ShouldSerializeTables() {
            return false;
        }
        
        protected override bool ShouldSerializeRelations() {
            return false;
        }
        
        protected override void ReadXmlSerializable(XmlReader reader) {
            this.Reset();
            DataSet ds = new DataSet();
            ds.ReadXml(reader);
            if ((ds.Tables["UsuarioWeb"] != null)) {
                this.Tables.Add(new UsuarioWebDataTable(ds.Tables["UsuarioWeb"]));
            }
            this.DataSetName = ds.DataSetName;
            this.Prefix = ds.Prefix;
            this.Namespace = ds.Namespace;
            this.Locale = ds.Locale;
            this.CaseSensitive = ds.CaseSensitive;
            this.EnforceConstraints = ds.EnforceConstraints;
            this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
            this.InitVars();
        }
        
        protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() {
            System.IO.MemoryStream stream = new System.IO.MemoryStream();
            this.WriteXmlSchema(new XmlTextWriter(stream, null));
            stream.Position = 0;
            return System.Xml.Schema.XmlSchema.Read(new XmlTextReader(stream), null);
        }
        
        internal void InitVars() {
            this.tableUsuarioWeb = ((UsuarioWebDataTable)(this.Tables["UsuarioWeb"]));
            if ((this.tableUsuarioWeb != null)) {
                this.tableUsuarioWeb.InitVars();
            }
        }
        
        private void InitClass() {
            this.DataSetName = "DSUsuarioWeb";
            this.Prefix = "";
            this.Namespace = "http://tempuri.org/DSUsuarioWeb.xsd";
            this.Locale = new System.Globalization.CultureInfo("en-US");
            this.CaseSensitive = false;
            this.EnforceConstraints = true;
            this.tableUsuarioWeb = new UsuarioWebDataTable();
            this.Tables.Add(this.tableUsuarioWeb);
        }
        
        private bool ShouldSerializeUsuarioWeb() {
            return false;
        }
        
        private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
            if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
                this.InitVars();
            }
        }
        
        public delegate void UsuarioWebRowChangeEventHandler(object sender, UsuarioWebRowChangeEvent e);
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class UsuarioWebDataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn columnidUsuarioWeb;
            
            private DataColumn columnRut;
            
            private DataColumn columnDV;
            
            private DataColumn columnNombre;
            
            private DataColumn columnPaterno;
            
            private DataColumn columnMaterno;
            
            private DataColumn columnMail;
            
            private DataColumn columnPassword;
            
            private DataColumn columnTipoUsuario;
            
            private DataColumn columnHabilitada;
            
            private DataColumn columnCambiarPasswordInicio;
            
            private DataColumn columnSaltHash;
            
            internal UsuarioWebDataTable() : 
                    base("UsuarioWeb") {
                this.InitClass();
            }
            
            internal UsuarioWebDataTable(DataTable table) : 
                    base(table.TableName) {
                if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
                    this.CaseSensitive = table.CaseSensitive;
                }
                if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
                    this.Locale = table.Locale;
                }
                if ((table.Namespace != table.DataSet.Namespace)) {
                    this.Namespace = table.Namespace;
                }
                this.Prefix = table.Prefix;
                this.MinimumCapacity = table.MinimumCapacity;
                this.DisplayExpression = table.DisplayExpression;
            }
            
            [System.ComponentModel.Browsable(false)]
            public int Count {
                get {
                    return this.Rows.Count;
                }
            }
            
            internal DataColumn idUsuarioWebColumn {
                get {
                    return this.columnidUsuarioWeb;
                }
            }
            
            internal DataColumn RutColumn {
                get {
                    return this.columnRut;
                }
            }
            
            internal DataColumn DVColumn {
                get {
                    return this.columnDV;
                }
            }
            
            internal DataColumn NombreColumn {
                get {
                    return this.columnNombre;
                }
            }
            
            internal DataColumn PaternoColumn {
                get {
                    return this.columnPaterno;
                }
            }
            
            internal DataColumn MaternoColumn {
                get {
                    return this.columnMaterno;
                }
            }
            
            internal DataColumn MailColumn {
                get {
                    return this.columnMail;
                }
            }
            
            internal DataColumn PasswordColumn {
                get {
                    return this.columnPassword;
                }
            }
            
            internal DataColumn TipoUsuarioColumn {
                get {
                    return this.columnTipoUsuario;
                }
            }
            
            internal DataColumn HabilitadaColumn {
                get {
                    return this.columnHabilitada;
                }
            }
            
            internal DataColumn CambiarPasswordInicioColumn {
                get {
                    return this.columnCambiarPasswordInicio;
                }
            }
            
            internal DataColumn SaltHashColumn {
                get {
                    return this.columnSaltHash;
                }
            }
            
            public UsuarioWebRow this[int index] {
                get {
                    return ((UsuarioWebRow)(this.Rows[index]));
                }
            }
            
            public event UsuarioWebRowChangeEventHandler UsuarioWebRowChanged;
            
            public event UsuarioWebRowChangeEventHandler UsuarioWebRowChanging;
            
            public event UsuarioWebRowChangeEventHandler UsuarioWebRowDeleted;
            
            public event UsuarioWebRowChangeEventHandler UsuarioWebRowDeleting;
            
            public void AddUsuarioWebRow(UsuarioWebRow row) {
                this.Rows.Add(row);
            }
            
            public UsuarioWebRow AddUsuarioWebRow(string Rut, string DV, string Nombre, string Paterno, string Materno, string Mail, string Password, int TipoUsuario, bool Habilitada, bool CambiarPasswordInicio, string SaltHash) {
                UsuarioWebRow rowUsuarioWebRow = ((UsuarioWebRow)(this.NewRow()));
                rowUsuarioWebRow.ItemArray = new object[] {
                        null,
                        Rut,
                        DV,
                        Nombre,
                        Paterno,
                        Materno,
                        Mail,
                        Password,
                        TipoUsuario,
                        Habilitada,
                        CambiarPasswordInicio,
                        SaltHash};
                this.Rows.Add(rowUsuarioWebRow);
                return rowUsuarioWebRow;
            }
            
            public UsuarioWebRow FindByidUsuarioWeb(int idUsuarioWeb) {
                return ((UsuarioWebRow)(this.Rows.Find(new object[] {
                            idUsuarioWeb})));
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                UsuarioWebDataTable cln = ((UsuarioWebDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new UsuarioWebDataTable();
            }
            
            internal void InitVars() {
                this.columnidUsuarioWeb = this.Columns["idUsuarioWeb"];
                this.columnRut = this.Columns["Rut"];
                this.columnDV = this.Columns["DV"];
                this.columnNombre = this.Columns["Nombre"];
                this.columnPaterno = this.Columns["Paterno"];
                this.columnMaterno = this.Columns["Materno"];
                this.columnMail = this.Columns["Mail"];
                this.columnPassword = this.Columns["Password"];
                this.columnTipoUsuario = this.Columns["TipoUsuario"];
                this.columnHabilitada = this.Columns["Habilitada"];
                this.columnCambiarPasswordInicio = this.Columns["CambiarPasswordInicio"];
                this.columnSaltHash = this.Columns["SaltHash"];
            }
            
            private void InitClass() {
                this.columnidUsuarioWeb = new DataColumn("idUsuarioWeb", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnidUsuarioWeb);
                this.columnRut = new DataColumn("Rut", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnRut);
                this.columnDV = new DataColumn("DV", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnDV);
                this.columnNombre = new DataColumn("Nombre", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnNombre);
                this.columnPaterno = new DataColumn("Paterno", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnPaterno);
                this.columnMaterno = new DataColumn("Materno", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnMaterno);
                this.columnMail = new DataColumn("Mail", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnMail);
                this.columnPassword = new DataColumn("Password", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnPassword);
                this.columnTipoUsuario = new DataColumn("TipoUsuario", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnTipoUsuario);
                this.columnHabilitada = new DataColumn("Habilitada", typeof(bool), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnHabilitada);
                this.columnCambiarPasswordInicio = new DataColumn("CambiarPasswordInicio", typeof(bool), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnCambiarPasswordInicio);
                this.columnSaltHash = new DataColumn("SaltHash", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnSaltHash);
                this.Constraints.Add(new UniqueConstraint("DSUsuarioWebKey1", new DataColumn[] {
                                this.columnidUsuarioWeb}, true));
                this.columnidUsuarioWeb.AutoIncrement = true;
                this.columnidUsuarioWeb.AllowDBNull = false;
                this.columnidUsuarioWeb.ReadOnly = true;
                this.columnidUsuarioWeb.Unique = true;
                this.columnRut.AllowDBNull = false;
                this.columnDV.AllowDBNull = false;
                this.columnNombre.AllowDBNull = false;
                this.columnPassword.AllowDBNull = false;
                this.columnTipoUsuario.AllowDBNull = false;
                this.columnHabilitada.AllowDBNull = false;
                this.columnCambiarPasswordInicio.AllowDBNull = false;
                this.columnSaltHash.AllowDBNull = false;
            }
            
            public UsuarioWebRow NewUsuarioWebRow() {
                return ((UsuarioWebRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new UsuarioWebRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(UsuarioWebRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.UsuarioWebRowChanged != null)) {
                    this.UsuarioWebRowChanged(this, new UsuarioWebRowChangeEvent(((UsuarioWebRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.UsuarioWebRowChanging != null)) {
                    this.UsuarioWebRowChanging(this, new UsuarioWebRowChangeEvent(((UsuarioWebRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.UsuarioWebRowDeleted != null)) {
                    this.UsuarioWebRowDeleted(this, new UsuarioWebRowChangeEvent(((UsuarioWebRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.UsuarioWebRowDeleting != null)) {
                    this.UsuarioWebRowDeleting(this, new UsuarioWebRowChangeEvent(((UsuarioWebRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveUsuarioWebRow(UsuarioWebRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class UsuarioWebRow : DataRow {
            
            private UsuarioWebDataTable tableUsuarioWeb;
            
            internal UsuarioWebRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableUsuarioWeb = ((UsuarioWebDataTable)(this.Table));
            }
            
            public int idUsuarioWeb {
                get {
                    return ((int)(this[this.tableUsuarioWeb.idUsuarioWebColumn]));
                }
                set {
                    this[this.tableUsuarioWeb.idUsuarioWebColumn] = value;
                }
            }
            
            public string Rut {
                get {
                    return ((string)(this[this.tableUsuarioWeb.RutColumn]));
                }
                set {
                    this[this.tableUsuarioWeb.RutColumn] = value;
                }
            }
            
            public string DV {
                get {
                    return ((string)(this[this.tableUsuarioWeb.DVColumn]));
                }
                set {
                    this[this.tableUsuarioWeb.DVColumn] = value;
                }
            }
            
            public string Nombre {
                get {
                    return ((string)(this[this.tableUsuarioWeb.NombreColumn]));
                }
                set {
                    this[this.tableUsuarioWeb.NombreColumn] = value;
                }
            }
            
            public string Paterno {
                get {
                    try {
                        return ((string)(this[this.tableUsuarioWeb.PaternoColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableUsuarioWeb.PaternoColumn] = value;
                }
            }
            
            public string Materno {
                get {
                    try {
                        return ((string)(this[this.tableUsuarioWeb.MaternoColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableUsuarioWeb.MaternoColumn] = value;
                }
            }
            
            public string Mail {
                get {
                    try {
                        return ((string)(this[this.tableUsuarioWeb.MailColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("No se puede obtener el valor porque es DBNull.", e);
                    }
                }
                set {
                    this[this.tableUsuarioWeb.MailColumn] = value;
                }
            }
            
            public string Password {
                get {
                    return ((string)(this[this.tableUsuarioWeb.PasswordColumn]));
                }
                set {
                    this[this.tableUsuarioWeb.PasswordColumn] = value;
                }
            }
            
            public int TipoUsuario {
                get {
                    return ((int)(this[this.tableUsuarioWeb.TipoUsuarioColumn]));
                }
                set {
                    this[this.tableUsuarioWeb.TipoUsuarioColumn] = value;
                }
            }
            
            public bool Habilitada {
                get {
                    return ((bool)(this[this.tableUsuarioWeb.HabilitadaColumn]));
                }
                set {
                    this[this.tableUsuarioWeb.HabilitadaColumn] = value;
                }
            }
            
            public bool CambiarPasswordInicio {
                get {
                    return ((bool)(this[this.tableUsuarioWeb.CambiarPasswordInicioColumn]));
                }
                set {
                    this[this.tableUsuarioWeb.CambiarPasswordInicioColumn] = value;
                }
            }
            
            public string SaltHash {
                get {
                    return ((string)(this[this.tableUsuarioWeb.SaltHashColumn]));
                }
                set {
                    this[this.tableUsuarioWeb.SaltHashColumn] = value;
                }
            }
            
            public bool IsPaternoNull() {
                return this.IsNull(this.tableUsuarioWeb.PaternoColumn);
            }
            
            public void SetPaternoNull() {
                this[this.tableUsuarioWeb.PaternoColumn] = System.Convert.DBNull;
            }
            
            public bool IsMaternoNull() {
                return this.IsNull(this.tableUsuarioWeb.MaternoColumn);
            }
            
            public void SetMaternoNull() {
                this[this.tableUsuarioWeb.MaternoColumn] = System.Convert.DBNull;
            }
            
            public bool IsMailNull() {
                return this.IsNull(this.tableUsuarioWeb.MailColumn);
            }
            
            public void SetMailNull() {
                this[this.tableUsuarioWeb.MailColumn] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class UsuarioWebRowChangeEvent : EventArgs {
            
            private UsuarioWebRow eventRow;
            
            private DataRowAction eventAction;
            
            public UsuarioWebRowChangeEvent(UsuarioWebRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public UsuarioWebRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}
