namespace XXX { public class YYY { public static DataTable table(String query) { MySqlDataAdapter Adp = new MySqlDataAdapter(query, SqlConnection); DataTable dataTable = new DataTable(); Adp .Fill(dataTable); return dataTable; } } }
namespace XXX { public class ZZZ { public object[] InsertParameters(XXX.yyy device) { Here I should call "Adp " Object }
public object[] InsertParameters(XXX.yyy device) { Adp .Parameters.AddWithValue("@s", device.s); Adp .Parameters.AddWithValue("@f", device.f); Adp .Parameters.AddWithValue("@c", device.c); Adp .Parameters.AddWithValue("@z", device.z); }
Adp
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)