/
aprogrammer
/
dotnet-docs
Обзор
Документация
Войти
/
aprogrammer
/
dotnet-docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbLINQtoSQLHowTos/VB/northwind.dbml
55 строк
4 KB
Andy De George
Move snippets from samples repo to this repo (#17296)
03 мар 2020, 19:23
Не верифицирован
03 мар 2020, 19:23
dbbeda1
Код
Авторство
О чём код?
<?xml version="1.0" encoding="utf-16"?> <Database Name="NORTHWND" Class="northwindDataContext" xmlns="http://schemas.microsoft.com/linqtosql/dbml/2007"> <Connection Mode="AppSettings" ConnectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Data\NORTHWND.MDF;Integrated Security=True;Connect Timeout=30;User Instance=True" SettingsObjectName="StoredProcedureHowTo.My.MySettings" SettingsPropertyName="NORTHWNDConnectionString" Provider="System.Data.SqlClient" /> <Table Name="dbo.Customers" Member="Customers"> <Type Name="Customer"> <Column Name="CustomerID" Type="System.String" DbType="NChar(5) NOT NULL" IsPrimaryKey="true" CanBeNull="false" /> <Column Name="CompanyName" Type="System.String" DbType="NVarChar(40) NOT NULL" CanBeNull="false" /> <Column Name="ContactName" Type="System.String" DbType="NVarChar(30)" CanBeNull="true" /> <Column Name="ContactTitle" Type="System.String" DbType="NVarChar(30)" CanBeNull="true" /> <Column Name="Address" Type="System.String" DbType="NVarChar(60)" CanBeNull="true" /> <Column Name="City" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" /> <Column Name="Region" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" /> <Column Name="PostalCode" Type="System.String" DbType="NVarChar(10)" CanBeNull="true" /> <Column Name="Country" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" /> <Column Name="Phone" Type="System.String" DbType="NVarChar(24)" CanBeNull="true" /> <Column Name="Fax" Type="System.String" DbType="NVarChar(24)" CanBeNull="true" /> <Association Name="Customer_Order" Member="Orders" OtherKey="CustomerID" Type="Order" /> </Type> </Table> <Table Name="dbo.Orders" Member="Orders"> <Type Name="Order"> <Column Name="OrderID" Type="System.Int32" DbType="Int NOT NULL IDENTITY" IsReadOnly="true" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" UpdateCheck="Always" /> <Column Name="CustomerID" Type="System.String" DbType="NChar(5)" CanBeNull="true" /> <Column Name="EmployeeID" Type="System.Int32" DbType="Int" CanBeNull="true" /> <Column Name="OrderDate" Type="System.DateTime" DbType="DateTime" CanBeNull="true" /> <Column Name="RequiredDate" Type="System.DateTime" DbType="DateTime" CanBeNull="true" /> <Column Name="ShippedDate" Type="System.DateTime" DbType="DateTime" CanBeNull="true" /> <Column Name="ShipVia" Type="System.Int32" DbType="Int" CanBeNull="true" /> <Column Name="Freight" Type="System.Decimal" DbType="Money" CanBeNull="true" /> <Column Name="ShipName" Type="System.String" DbType="NVarChar(40)" CanBeNull="true" /> <Column Name="ShipAddress" Type="System.String" DbType="NVarChar(60)" CanBeNull="true" /> <Column Name="ShipCity" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" /> <Column Name="ShipRegion" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" /> <Column Name="ShipPostalCode" Type="System.String" DbType="NVarChar(10)" CanBeNull="true" /> <Column Name="ShipCountry" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" /> <Association Name="Customer_Order" Member="Customer" ThisKey="CustomerID" Type="Customer" IsForeignKey="true" /> </Type> </Table> <Function Name="dbo.[Ten Most Expensive Products]" Method="Ten_Most_Expensive_Products"> <ElementType Name="Ten_Most_Expensive_ProductsResult"> <Column Name="TenMostExpensiveProducts" Type="System.String" DbType="NVarChar(40) NOT NULL" CanBeNull="false" /> <Column Name="UnitPrice" Type="System.Decimal" DbType="Money" CanBeNull="true" /> </ElementType> </Function> <Function Name="dbo.[Sales by Year]" Method="Sales_by_Year"> <Parameter Name="Beginning_Date" Parameter="beginning_Date" Type="System.DateTime" DbType="DateTime" /> <Parameter Name="Ending_Date" Parameter="ending_Date" Type="System.DateTime" DbType="DateTime" /> <ElementType Name="Sales_by_YearResult"> <Column Name="ShippedDate" Type="System.DateTime" DbType="DateTime" CanBeNull="true" /> <Column Name="OrderID" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" /> <Column Name="Subtotal" Type="System.Decimal" DbType="Money" CanBeNull="true" /> <Column Name="Year" Type="System.String" DbType="NVarChar(30)" CanBeNull="true" /> </ElementType> </Function> </Database>