EntityBase.txt 454 B

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