I would like to find a way to create and populate the database during the installation of asp.net.
So, I am ready to do this:
I am using .NET 3.5 and Visual Studio 2005 , and the database is SQL Server 2005.
Thanks in advance.
, MSDN: .
, , , , , .
, , , .
.
, . , .
, SQL-. , , .
, script. , , :
. CREATE DATABASE, CREATE SCHEMA, CREATE TABLE, CREATE VIEW .., INSERT .
CREATE DATABASE
CREATE SCHEMA
CREATE TABLE
CREATE VIEW
INSERT
, YMMV:
aspnet_regsql
, script .
(IF EXISTS ..). , , .
IF EXISTS
!
Linq Sql, .Linq to Sql. , , System.Data.Linq.DataContext, .
DataContext.CreateDatabase() .
. .
Source: https://habr.com/ru/post/1704286/More articles:Error loading really big file in PHP? - phpCan you run Crystal Reports 10 in read-only mode to prevent users from creating or modifying a report? - crystal-reports2-finger scrollable div on iPhone? - iphoneConvert a web application to a web service - web-servicesAn access request returns empty fields depending on how the table is bound. - sqlShow an asterisk in a validation control, but in a brief error message - validation.Net string parsing library or regular expression for parsing .Net code files - c #An example of a data creation tool (mainly for databases) - random-samplehttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1704290/is-it-ok-to-set-datacontext-as-a-property-in-repository&usg=ALkJrhhTcJ7G4GxbDspC_-HGMEL6iyVs_gHow does .NET create a SHA1 hash? - .netAll Articles