123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- //------------------------------------------------------------------------------
- // <auto-generated>
- // This code was generated from a template.
- //
- // Manual changes to this file may cause unexpected behavior in your application.
- // Manual changes to this file will be overwritten if the code is regenerated.
- // </auto-generated>
- //------------------------------------------------------------------------------
- namespace EMIS.Entities
- {
- #pragma warning disable 1573
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.Data.Common;
- using System.Data.Entity;
- using System.Data.Entity.ModelConfiguration;
- using System.Data.Entity.Infrastructure;
- using System.ComponentModel.DataAnnotations.Schema;
-
- internal partial class ET_StockIn_Mapping : EntityTypeConfiguration<ET_StockIn>
- {
- public ET_StockIn_Mapping()
- {
- this.HasKey(t => t.StockInID);
- this.ToTable("ET_StockIn");
- this.Property(t => t.StockInID).HasColumnName("StockInID");
- this.Property(t => t.StockInDocumentNo).HasColumnName("StockInDocumentNo").IsRequired().IsUnicode(false).HasMaxLength(100);
- this.Property(t => t.StockInNumber).HasColumnName("StockInNumber").IsRequired().IsUnicode(false).HasMaxLength(100);
- this.Property(t => t.OrdersNo).HasColumnName("OrdersNo").IsUnicode(false).HasMaxLength(100);
- this.Property(t => t.StockInType).HasColumnName("StockInType");
- this.Property(t => t.StockInSumMoney).HasColumnName("StockInSumMoney");
- this.Property(t => t.StockInTime).HasColumnName("StockInTime");
- this.Property(t => t.SchoolyearID).HasColumnName("SchoolyearID");
- this.Property(t => t.HandlerUserID).HasColumnName("HandlerUserID");
- this.Property(t => t.SupplierID).HasColumnName("SupplierID");
- this.Property(t => t.RecordStatus).HasColumnName("RecordStatus");
- this.Property(t => t.CreateUserID).HasColumnName("CreateUserID");
- this.Property(t => t.CreateTime).HasColumnName("CreateTime");
- this.Property(t => t.ModifyUserID).HasColumnName("ModifyUserID");
- this.Property(t => t.ModifyTime).HasColumnName("ModifyTime");
- this.Property(t => t.Desc).HasColumnName("Desc").IsUnicode(false).HasMaxLength(500);
- this.HasOptional(t => t.CF_Publish).WithMany(t => t.ET_StockIn).HasForeignKey(d => d.SupplierID);
- this.HasOptional(t => t.CF_Schoolyear).WithMany(t => t.ET_StockIn).HasForeignKey(d => d.SchoolyearID);
- }
- }
- }
|