EntityBase.txt 445 B

123456789101112131415161718192021
  1. USE [xyy_erp]
  2. declare @tableCount int =0
  3. select @tableCount= count(*) from information_schema.tables where table_name='{0}'
  4. if(@tableCount =0)
  5. begin
  6. SET ANSI_NULLS ON
  7. SET QUOTED_IDENTIFIER ON
  8. CREATE TABLE [dbo].[{0}](
  9. {1}
  10. CONSTRAINT [PK_{0}] PRIMARY KEY CLUSTERED
  11. (
  12. [Id] ASC
  13. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  14. ) ON [PRIMARY]
  15. end