我有一个主细节数据网格,我想将我的数据实体绑定到主细节的孩子。我不知道如何将实体绑定到孩子?你能帮我解决这个问题吗?
using (IDbConnection db = new SqlConnection("Data Source =.; Initial Catalog = tejarat_iran; Integrated Security = True"))
{
var multiReport = db.QueryMultiple("SearchReport", new { search = IdCompany, kind = 0 }, null, null, CommandType.StoredProcedure);
var company = multiReport.Read<Class_entity.companyentity>().AsList();
var person = multiReport.Read<Class_entity.personEntity>().AsList();
var product = multiReport.Read<Class_entity.productentity>().AsList();
tblsherkatBindingSource.DataSource = company;
}