<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DataSetBerechtigungen" targetNamespace="http://tempuri.org/DataSetBerechtigungen.xsd" xmlns:mstns="http://tempuri.org/DataSetBerechtigungen.xsd" xmlns="http://tempuri.org/DataSetBerechtigungen.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="MySettings" AppSettingsPropertyName="connToAdminDEV" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="connToAdminDEV (MySettings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.ADMIN.My.MySettings.GlobalReference.Default.connToAdminDEV" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tblBerechtigungenTableAdapter" GeneratorDataComponentClassName="tblBerechtigungenTableAdapter" Name="tblBerechtigungen" UserDataComponentName="tblBerechtigungenTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="connToAdminDEV (MySettings)" DbObjectName="ADMIN.dbo.tblBerechtigungen" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[tblBerechtigungen] WHERE (([ber_id] = @Original_ber_id) AND ((@IsNull_ber_name = 1 AND [ber_name] IS NULL) OR ([ber_name] = @Original_ber_name)) AND ((@IsNull_ber_sicherheitsstufe = 1 AND [ber_sicherheitsstufe] IS NULL) OR ([ber_sicherheitsstufe] = @Original_ber_sicherheitsstufe)) AND ((@IsNull_ber_progId = 1 AND [ber_progId] IS NULL) OR ([ber_progId] = @Original_ber_progId)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ber_id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ber_id" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ber_name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ber_name" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_ber_name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ber_name" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ber_sicherheitsstufe" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ber_sicherheitsstufe" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ber_sicherheitsstufe" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ber_sicherheitsstufe" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ber_progId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ber_progId" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ber_progId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ber_progId" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[tblBerechtigungen] ([ber_name], [ber_sicherheitsstufe], [ber_progId]) VALUES (@ber_name, @ber_sicherheitsstufe, @ber_progId);
SELECT ber_id, ber_name, ber_sicherheitsstufe, ber_progId FROM tblBerechtigungen WHERE (ber_id = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@ber_name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ber_name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ber_sicherheitsstufe" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ber_sicherheitsstufe" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ber_progId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ber_progId" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ber_id, ber_name, ber_sicherheitsstufe, ber_progId FROM dbo.tblBerechtigungen</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[tblBerechtigungen] SET [ber_name] = @ber_name, [ber_sicherheitsstufe] = @ber_sicherheitsstufe, [ber_progId] = @ber_progId WHERE (([ber_id] = @Original_ber_id) AND ((@IsNull_ber_name = 1 AND [ber_name] IS NULL) OR ([ber_name] = @Original_ber_name)) AND ((@IsNull_ber_sicherheitsstufe = 1 AND [ber_sicherheitsstufe] IS NULL) OR ([ber_sicherheitsstufe] = @Original_ber_sicherheitsstufe)) AND ((@IsNull_ber_progId = 1 AND [ber_progId] IS NULL) OR ([ber_progId] = @Original_ber_progId)));
SELECT ber_id, ber_name, ber_sicherheitsstufe, ber_progId FROM tblBerechtigungen WHERE (ber_id = @ber_id)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@ber_name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ber_name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ber_sicherheitsstufe" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ber_sicherheitsstufe" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ber_progId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ber_progId" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ber_id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ber_id" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ber_name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ber_name" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_ber_name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ber_name" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ber_sicherheitsstufe" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ber_sicherheitsstufe" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ber_sicherheitsstufe" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ber_sicherheitsstufe" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ber_progId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ber_progId" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ber_progId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ber_progId" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ber_id" ColumnName="ber_id" DataSourceName="ADMIN.dbo.tblBerechtigungen" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ber_id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ber_id" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ber_id" DataSetColumn="ber_id" />
              <Mapping SourceColumn="ber_name" DataSetColumn="ber_name" />
              <Mapping SourceColumn="ber_sicherheitsstufe" DataSetColumn="ber_sicherheitsstufe" />
              <Mapping SourceColumn="ber_progId" DataSetColumn="ber_progId" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="DataSetBerechtigungen" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="DataSetBerechtigungen" msprop:Generator_UserDSName="DataSetBerechtigungen">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="tblBerechtigungen" msprop:Generator_TableClassName="tblBerechtigungenDataTable" msprop:Generator_TableVarName="tabletblBerechtigungen" msprop:Generator_TablePropName="tblBerechtigungen" msprop:Generator_RowDeletingName="tblBerechtigungenRowDeleting" msprop:Generator_RowChangingName="tblBerechtigungenRowChanging" msprop:Generator_RowEvHandlerName="tblBerechtigungenRowChangeEventHandler" msprop:Generator_RowDeletedName="tblBerechtigungenRowDeleted" msprop:Generator_UserTableName="tblBerechtigungen" msprop:Generator_RowChangedName="tblBerechtigungenRowChanged" msprop:Generator_RowEvArgName="tblBerechtigungenRowChangeEvent" msprop:Generator_RowClassName="tblBerechtigungenRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ber_id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnber_id" msprop:Generator_ColumnPropNameInRow="ber_id" msprop:Generator_ColumnPropNameInTable="ber_idColumn" msprop:Generator_UserColumnName="ber_id" type="xs:int" />
              <xs:element name="ber_name" msprop:Generator_ColumnVarNameInTable="columnber_name" msprop:Generator_ColumnPropNameInRow="ber_name" msprop:Generator_ColumnPropNameInTable="ber_nameColumn" msprop:Generator_UserColumnName="ber_name" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="500" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ber_sicherheitsstufe" msprop:Generator_ColumnVarNameInTable="columnber_sicherheitsstufe" msprop:Generator_ColumnPropNameInRow="ber_sicherheitsstufe" msprop:Generator_ColumnPropNameInTable="ber_sicherheitsstufeColumn" msprop:Generator_UserColumnName="ber_sicherheitsstufe" type="xs:int" minOccurs="0" />
              <xs:element name="ber_progId" msprop:Generator_ColumnVarNameInTable="columnber_progId" msprop:Generator_ColumnPropNameInRow="ber_progId" msprop:Generator_ColumnPropNameInTable="ber_progIdColumn" msprop:Generator_UserColumnName="ber_progId" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:tblBerechtigungen" />
      <xs:field xpath="mstns:ber_id" />
    </xs:unique>
  </xs:element>
</xs:schema>