system.data

System.Data throws NotSupportedException on iOS Unity Build

那年仲夏 提交于 2020-07-10 08:28:05
问题 I want to use DataTable class on iOS. I am implementing DataTable class as you see in the code. It works fine on Android and Standalone builds with Unity. I cannot figure it out why iOS is not woking. The interesting part is the early version of this app works fine on all platforms. Is there any idea how to dig in to the issue? I check the build folder on Xcode and I see the System.Data.dll on the resources folder so the is no optimization stripped all necessary files are included. DataTable

How can I manually / programmatically create a DataRow?

随声附和 提交于 2020-03-21 11:32:44
问题 My project's codebase has a legacy method that takes a DataRow as a parameter for which I would like to create a unit test method. How can I manually create a DataRow object to pass to the method? The System.Data.DataRow class doesn't have a public-facing constructor. 回答1: A DataRow can be created by creating a new DataTable instance, adding columns to the DataTable corresponding to the "keys" that the DataRow needs to have, and then calling NewRow() on the DataTable. For example: DataTable

Cannot instell System.data.sqlClient in Visual Studio Xamarin project

无人久伴 提交于 2020-01-17 10:57:50
问题 I previously asked a question concerning azure databases and was given a helpful solution, however to utilise that solution, I needed to install System.Data.SqlClient. I tried installing the NuGet package from microsoft but whenever I do, I get the following error. I'd really appreciate some help with this. The project is a cross-platform application using xamarin.forms and a portable class library. I'm trying to install it to Appname(portable) because that's where my scripts are. thank you.

Cannot instell System.data.sqlClient in Visual Studio Xamarin project

别来无恙 提交于 2020-01-17 10:56:45
问题 I previously asked a question concerning azure databases and was given a helpful solution, however to utilise that solution, I needed to install System.Data.SqlClient. I tried installing the NuGet package from microsoft but whenever I do, I get the following error. I'd really appreciate some help with this. The project is a cross-platform application using xamarin.forms and a portable class library. I'm trying to install it to Appname(portable) because that's where my scripts are. thank you.

System.Data Assembly Not found

让人想犯罪 __ 提交于 2020-01-12 19:01:32
问题 I have a reference to System.Data in my windows service project. I keep getting the Exception : Could not load file or assembly 'System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified. I attach the FusionLog to my code and found out the following. For System.Data only visual studio is looking here: Assembly manager loaded from: C:\windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll And it should

How can I create two commands in one connection?

三世轮回 提交于 2020-01-05 08:17:13
问题 For example I want to INSERT data in database and also UPDATE another table. My code is like this SqlConnection con = new SqlConnection("**"); con.Open(); SqlCommand cmd = con.CreateCommand(); cmd.CommandText = "INSERT Borrowbook VALUES (@StudentID, @ISBN, @Title, @Date)"; SqlParameter p1 = new SqlParameter("@StudentID", SqlDbType.NChar); p1.Value = textBox2.Text; cmd.Parameters.Add(p1); SqlParameter p2 = new SqlParameter("@ISBN", SqlDbType.NVarChar); p2.Value = textBox4.Text; cmd.Parameters

create table with records in sql server with powershell: what's best?

岁酱吖の 提交于 2020-01-04 14:23:05
问题 I need to create and populate a table on sql server db starting from a powershell array of objects coming from select-object . I need to create the table with the correct datatypes and fields. One way that I well know is export-csv and then invoke-sqlcmd with BULK INSERT , but I prefer to skip csv export. How invoke-sqlcmd is normally used to create/populate a table starting from array of hash tables? Do you know other ways doing the same job without using invoke-sqlcmd ? Do I need to use

Custom .NET Data Providers

大城市里の小女人 提交于 2020-01-01 02:49:08
问题 Is is possible to use a custom .NET data provider without installing it in the GAC? Can I reference a custom DLL and register it inside my configuration file? 回答1: Yes , you can register an implementation of the DbProviderFactory class by adding the following section in your configuration file: <system.data> <DbProviderFactories> <add name="My Custom Data Provider" invariant="MyCustomDataProvider" description="Data Provider for My Custom Store" type="MyNamespace.MyCustomProviderFactory,

Custom .NET Data Providers

梦想与她 提交于 2020-01-01 02:49:04
问题 Is is possible to use a custom .NET data provider without installing it in the GAC? Can I reference a custom DLL and register it inside my configuration file? 回答1: Yes , you can register an implementation of the DbProviderFactory class by adding the following section in your configuration file: <system.data> <DbProviderFactories> <add name="My Custom Data Provider" invariant="MyCustomDataProvider" description="Data Provider for My Custom Store" type="MyNamespace.MyCustomProviderFactory,

ASP.NET MVC - System.Data.DataSet not referenced problem

﹥>﹥吖頭↗ 提交于 2019-12-14 02:43:54
问题 Well, first of all sorry about this question it must be pretty straight forward for you guys but I'm struggling myself on it, and I need to make it work :( Well I'm trying t o use DataSet on my application and when I render it I got: The type 'System.Data.DataSet' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data in my application System.Data is already being referenced from C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll and I'm