From d88a01863534a0be80f41300f1fda8f64720bed5 Mon Sep 17 00:00:00 2001 From: Stanislav Shchelokovskiy Date: Tue, 2 Jun 2020 18:17:18 +0300 Subject: [PATCH] 20.1 support --- .../LinqServerModeSource.csproj | 38 ++-- .../LinqServerModeSource.csproj.bak | 163 ++++++++++++++++++ CS/LinqServerModeSource/Northwind.cs | 6 + CS/LinqServerModeSource/Northwind.dbml | 2 +- CS/LinqServerModeSource/Northwind.dbml.layout | 2 +- CS/LinqServerModeSource/Northwind.designer.cs | 38 +--- CS/LinqServerModeSource/Program.cs | 4 - .../Properties/Resources.Designer.cs | 17 +- .../Properties/Settings.Designer.cs | 20 +-- .../Properties/Settings.settings | 4 +- CS/LinqServerModeSource/app.config | 60 ++++++- 11 files changed, 260 insertions(+), 94 deletions(-) create mode 100644 CS/LinqServerModeSource/LinqServerModeSource.csproj.bak create mode 100644 CS/LinqServerModeSource/Northwind.cs diff --git a/CS/LinqServerModeSource/LinqServerModeSource.csproj b/CS/LinqServerModeSource/LinqServerModeSource.csproj index 12bbd20..ea18540 100644 --- a/CS/LinqServerModeSource/LinqServerModeSource.csproj +++ b/CS/LinqServerModeSource/LinqServerModeSource.csproj @@ -1,5 +1,5 @@ - - + + Debug AnyCPU @@ -10,8 +10,9 @@ Properties LinqServerModeSource LinqServerModeSource - v4.0 - + v4.5.2 + + 2.0 publish\ @@ -29,6 +30,7 @@ false false true + true @@ -38,6 +40,7 @@ DEBUG;TRACE prompt 4 + false pdbonly @@ -46,16 +49,22 @@ TRACE prompt 4 + false - - - - - - - - + + + + + + + + + + + + + @@ -77,6 +86,9 @@ Form1.cs + + Northwind.dbml + True True @@ -153,4 +165,4 @@ --> - + \ No newline at end of file diff --git a/CS/LinqServerModeSource/LinqServerModeSource.csproj.bak b/CS/LinqServerModeSource/LinqServerModeSource.csproj.bak new file mode 100644 index 0000000..2cb8aff --- /dev/null +++ b/CS/LinqServerModeSource/LinqServerModeSource.csproj.bak @@ -0,0 +1,163 @@ + + + + Debug + AnyCPU + 11.0.50727.1 + 2.0 + {743FD596-27DB-44C7-8837-E9EA005C4E6D} + WinExe + Properties + LinqServerModeSource + LinqServerModeSource + v4.5.2 + + + 2.0 + + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + false + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + false + + + + + + + + + + + + + + + + + + + + + Form + + + EditForm.cs + + + Form + + + Form1.cs + + + Northwind.dbml + + + True + True + Northwind.dbml + + + + + + EditForm.cs + + + Form1.cs + + + + Northwind.dbml + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + True + + + MSLinqToSQLGenerator + Northwind.designer.cs + Designer + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + False + Microsoft .NET Framework 4 %28x86 and x64%29 + true + + + False + .NET Framework 3.5 SP1 Client Profile + false + + + False + .NET Framework 3.5 SP1 + false + + + False + Windows Installer 3.1 + true + + + + + + + + \ No newline at end of file diff --git a/CS/LinqServerModeSource/Northwind.cs b/CS/LinqServerModeSource/Northwind.cs new file mode 100644 index 0000000..29b3593 --- /dev/null +++ b/CS/LinqServerModeSource/Northwind.cs @@ -0,0 +1,6 @@ +namespace LinqServerModeSource +{ + partial class NorthwindDataContext + { + } +} \ No newline at end of file diff --git a/CS/LinqServerModeSource/Northwind.dbml b/CS/LinqServerModeSource/Northwind.dbml index fbd5f08..fbca16d 100644 --- a/CS/LinqServerModeSource/Northwind.dbml +++ b/CS/LinqServerModeSource/Northwind.dbml @@ -1,5 +1,5 @@  - + diff --git a/CS/LinqServerModeSource/Northwind.dbml.layout b/CS/LinqServerModeSource/Northwind.dbml.layout index eb95033..091c448 100644 --- a/CS/LinqServerModeSource/Northwind.dbml.layout +++ b/CS/LinqServerModeSource/Northwind.dbml.layout @@ -14,7 +14,7 @@ - + diff --git a/CS/LinqServerModeSource/Northwind.designer.cs b/CS/LinqServerModeSource/Northwind.designer.cs index 094311d..acc686c 100644 --- a/CS/LinqServerModeSource/Northwind.designer.cs +++ b/CS/LinqServerModeSource/Northwind.designer.cs @@ -1,19 +1,8 @@ -// Developer Express Code Central Example: -// How to implement CRUD operations using XtraGrid and LinqServeModeSource -// -// This example demonstrates how to implement create, update and delete operations -// using XtraGrid and LinqServeModeSource. -// This example works with the standard -// SQL Northwind database. -// -// You can find sample updates and versions for different programming languages here: -// http://www.devexpress.com/example=E4498 - -#pragma warning disable 1591 +#pragma warning disable 1591 //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.296 +// Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -460,7 +449,6 @@ public partial class Order : INotifyPropertyChanging, INotifyPropertyChanged private string _ShipCountry; - private string _ShipAdress; private EntityRef _Customer; @@ -496,8 +484,6 @@ public partial class Order : INotifyPropertyChanging, INotifyPropertyChanged partial void OnShipPostalCodeChanged(); partial void OnShipCountryChanging(string value); partial void OnShipCountryChanged(); - partial void OnShipAdressChanging(string value); - partial void OnShipAdressChanged(); #endregion public Order() @@ -790,26 +776,6 @@ public string ShipCountry } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ShipAdress", DbType="NVarChar(100)")] - public string ShipAdress - { - get - { - return this._ShipAdress; - } - set - { - if ((this._ShipAdress != value)) - { - this.OnShipAdressChanging(value); - this.SendPropertyChanging(); - this._ShipAdress = value; - this.SendPropertyChanged("ShipAdress"); - this.OnShipAdressChanged(); - } - } - } - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Customer_Order", Storage="_Customer", ThisKey="CustomerID", OtherKey="CustomerID", IsForeignKey=true)] public Customer Customer { diff --git a/CS/LinqServerModeSource/Program.cs b/CS/LinqServerModeSource/Program.cs index d29f7c9..a494055 100644 --- a/CS/LinqServerModeSource/Program.cs +++ b/CS/LinqServerModeSource/Program.cs @@ -27,10 +27,6 @@ static void Main() Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); - DevExpress.Skins.SkinManager.EnableFormSkins(); - DevExpress.UserSkins.BonusSkins.Register(); - UserLookAndFeel.Default.SetSkinStyle("Foggy"); - Application.Run(new Form1()); } } diff --git a/CS/LinqServerModeSource/Properties/Resources.Designer.cs b/CS/LinqServerModeSource/Properties/Resources.Designer.cs index 8a1a362..8bc00c3 100644 --- a/CS/LinqServerModeSource/Properties/Resources.Designer.cs +++ b/CS/LinqServerModeSource/Properties/Resources.Designer.cs @@ -1,18 +1,7 @@ -// Developer Express Code Central Example: -// How to implement CRUD operations using XtraGrid and LinqServeModeSource -// -// This example demonstrates how to implement create, update and delete operations -// using XtraGrid and LinqServeModeSource. -// This example works with the standard -// SQL Northwind database. -// -// You can find sample updates and versions for different programming languages here: -// http://www.devexpress.com/example=E4498 - -//------------------------------------------------------------------------------ +//------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.296 +// Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -30,7 +19,7 @@ namespace LinqServerModeSource.Properties { // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { diff --git a/CS/LinqServerModeSource/Properties/Settings.Designer.cs b/CS/LinqServerModeSource/Properties/Settings.Designer.cs index 8c00a52..27bfca5 100644 --- a/CS/LinqServerModeSource/Properties/Settings.Designer.cs +++ b/CS/LinqServerModeSource/Properties/Settings.Designer.cs @@ -1,18 +1,7 @@ -// Developer Express Code Central Example: -// How to implement CRUD operations using XtraGrid and LinqServeModeSource -// -// This example demonstrates how to implement create, update and delete operations -// using XtraGrid and LinqServeModeSource. -// This example works with the standard -// SQL Northwind database. -// -// You can find sample updates and versions for different programming languages here: -// http://www.devexpress.com/example=E4498 - -//------------------------------------------------------------------------------ +//------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.296 +// Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -23,7 +12,7 @@ namespace LinqServerModeSource.Properties { [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.6.0.0")] internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); @@ -37,7 +26,8 @@ public static Settings Default { [global::System.Configuration.ApplicationScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)] - [global::System.Configuration.DefaultSettingValueAttribute("Data Source=KURCHENKO-SV;Initial Catalog=Northwind;Integrated Security=True")] + [global::System.Configuration.DefaultSettingValueAttribute("Data Source=(LocalDb)\\mssqllocaldb;Initial Catalog=Northwind;Integrated Security=" + + "True")] public string NorthwindConnectionString { get { return ((string)(this["NorthwindConnectionString"])); diff --git a/CS/LinqServerModeSource/Properties/Settings.settings b/CS/LinqServerModeSource/Properties/Settings.settings index 9103766..7e9c26e 100644 --- a/CS/LinqServerModeSource/Properties/Settings.settings +++ b/CS/LinqServerModeSource/Properties/Settings.settings @@ -5,10 +5,10 @@ <?xml version="1.0" encoding="utf-16"?> <SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - <ConnectionString>Data Source=KURCHENKO-SV;Initial Catalog=Northwind;Integrated Security=True</ConnectionString> + <ConnectionString>Data Source=(LocalDb)\mssqllocaldb;Initial Catalog=Northwind;Integrated Security=True</ConnectionString> <ProviderName>System.Data.SqlClient</ProviderName> </SerializableConnectionString> - Data Source=KURCHENKO-SV;Initial Catalog=Northwind;Integrated Security=True + Data Source=(LocalDb)\mssqllocaldb;Initial Catalog=Northwind;Integrated Security=True \ No newline at end of file diff --git a/CS/LinqServerModeSource/app.config b/CS/LinqServerModeSource/app.config index 4db64d1..3e44f2a 100644 --- a/CS/LinqServerModeSource/app.config +++ b/CS/LinqServerModeSource/app.config @@ -1,10 +1,54 @@ - + - - - - - + + +
+ + + + + + + + + + + + + + + + + + + + + True + + + + + + + + + + + + + + + System + + + + + + + + + + + + \ No newline at end of file