如何使用C#从数据库中读取数组字段? [英] How to read array field from database using c#?

查看:219
本文介绍了如何使用C#从数据库中读取数组字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用C#与PostgreSQL的。在数据库中,我有一个表名为测试,并在此表中我有一个名为列改编,它的数据类型是双[] 和我保存这样的多种记录 {1,1,2,3,0,5,1,4} 。现在,如何将这些记录返回到C#编程并存储在例如一个List 列表与LT;双层[]> ARR1 =新的List<双层[]>();

I am using C# with postgresql. In the database I have a table named test and in this table I have a column named arr that it's datatype is double[] and I stored multiple record like this {1, 1, 2, 3, 0, 5, 1, 4}. Now, how to return those records into C# program and stored in a list for example List<double[]> arr1 = new List<double[]>();

谁能帮我

推荐答案

下面是一个演练中,在C#(.NET)使用PostgreSQL:的在C#中使用PostgreSQL(.NET)

Here is a walkthrough, Using PostgreSQL in your C# (.NET): Using PostgreSQL in your C# (.NET)

你需要给我们,您有,所以我们可以帮助解决这个问题的一些具体问题。

You will need to give us some specific problems that you are having so we can help solve the problem.

这篇关于如何使用C#从数据库中读取数组字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆