File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222
2323using System ;
2424using System . Collections . Generic ;
25- using System . Data . SqlClient ;
2625using BH . Engine . SQL ;
2726using BH . oM . Adapter ;
2827using BH . oM . Adapters . SQL ;
3433
3534using System . Data ;
3635
36+ #if ZCTDEPLOY
37+ using Microsoft . Data . SqlClient ;
38+ #else
39+ using System . Data . SqlClient ;
40+ #endif
41+
3742namespace BH . Adapter . SQL
3843{
3944 public partial class SqlAdapter
Original file line number Diff line number Diff line change 2525using System . Linq ;
2626using BH . oM . Data . Requests ;
2727using BH . oM . Adapter ;
28- using System . Data . SqlClient ;
2928using BH . oM . Adapters . SQL ;
3029using BH . Engine . SQL ;
3130
31+ #if ZCTDEPLOY
32+ using Microsoft . Data . SqlClient ;
33+ #else
34+ using System . Data . SqlClient ;
35+ #endif
36+
3237namespace BH . Adapter . SQL
3338{
3439 public partial class SqlAdapter
Original file line number Diff line number Diff line change 2626using BH . oM . Base ;
2727using BH . oM . Data . Requests ;
2828using BH . oM . Adapter ;
29- using System . Data . SqlClient ;
3029using BH . oM . Adapters . SQL ;
3130using BH . Engine . SQL ;
3231using System . Data ;
3332using System . Reflection ;
3433
34+ #if ZCTDEPLOY
35+ using Microsoft . Data . SqlClient ;
36+ #else
37+ using System . Data . SqlClient ;
38+ #endif
39+
3540namespace BH . Adapter . SQL
3641{
3742 public partial class SqlAdapter
Original file line number Diff line number Diff line change 2323 </PropertyGroup >
2424
2525 <ItemGroup Condition =" '$(Configuration)'=='ZeroCodeTool'" >
26- <PackageReference Include =" System.Data.SqlClient" Version =" 4.8.5" />
2726 <PackageReference Include =" Microsoft.CSharp" Version =" 4.7.0" />
27+ <PackageReference Include =" Microsoft.EntityFrameworkCore" Version =" 3.1.32" />
28+ <PackageReference Include =" Microsoft.Data.SqlClient" Version =" 5.2.0-preview1.23109.1" />
2829 </ItemGroup >
2930
3031 <Target Name =" PostBuild" AfterTargets =" PostBuildEvent" >
Original file line number Diff line number Diff line change 2222
2323using System ;
2424using System . Collections . Generic ;
25- using System . Data . SqlClient ;
2625using System . Linq ;
2726using System . Text ;
2827using System . Threading . Tasks ;
2928using BH . Engine . Base ;
3029
30+ #if ZCTDEPLOY
31+ using Microsoft . Data . SqlClient ;
32+ #else
33+ using System . Data . SqlClient ;
34+ #endif
35+
3136namespace BH . Adapter . SQL
3237{
3338 public partial class SqlAdapter : BHoMAdapter
@@ -38,7 +43,13 @@ public partial class SqlAdapter : BHoMAdapter
3843
3944 public SqlAdapter ( string server , string database )
4045 {
46+ bool hello = false ;
47+ #if ZCTDEPLOY
48+ m_ConnectionString = $ "Server = { server } ; Database = { database } ; Trusted_Connection = True; TrustServerCertificate=True";
49+ #else
4150 m_ConnectionString = $ "Server = { server } ; Database = { database } ; Trusted_Connection = True;";
51+ #endif
52+
4253 Initialise ( ) ;
4354 }
4455
You can’t perform that action at this time.
0 commit comments