<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="EHR" 
Name="EHR_RUS_REF_BOOKS" 
Description="Справочник НСИ" 
PrimaryKey="EhrRusRefBooksID">
  <Fields>
    <Attribute Name="EhrRusRefBooksID" Type="int" Description="Идентификатор" />
    <Attribute Name="Code" Type="string" Description="Код" CharacterMaximumLength="64" Required="1" />
    <Attribute Name="Name" Type="string" Description="Наименование" CharacterMaximumLength="255" Required="1" />
    <Attribute Name="CurrVersion" Type="string" Description="Текущая версия" CharacterMaximumLength="8" />
    <Attribute Name="UpdateDate" Type="datetime" Description="Дата загрузки" />
    <Attribute Name="OID" Type="string" Description="OID справочника" CharacterMaximumLength="54" />
    <Parent Name="Entities" Type="VCLib.ENTITIES" Description="Сущности метаданных" Required="1" />
    <Attribute Name="Deleted" Type="bool" Description="Частично удален" Required="1" />
    <Parent Name="UserUploadedRefBook" Type="VCLib.BASE_USERS" Description="Пользователь, загрузивший справочник" />
  </Fields>
  <DbMapping>
    <Table name="T_EHR_RUS_REF_BOOKS">
      <Map Name="EhrRusRefBooksID" Column="EhrRusRefBooksID" />
      <Map Name="Code" Column="Code" />
      <Map Name="Name" Column="Name" />
      <Map Name="CurrVersion" Column="CurrVersion" />
      <Map Name="UpdateDate" Column="UpdateDate" />
      <Map Name="OID" Column="OID" />
      <Map Name="Entities" Column="Entities" />
      <Map Name="Deleted" Column="Deleted" />
      <Map Name="UserUploadedRefBook" Column="UserUploadedRefBook" />
    </Table>
  </DbMapping>
</Entity>