这个是我写的 DAL 层
到了ui层不知道怎么把值传过去新手求指导
private void SelectA() {
Models.Material material = new Models.Material();
material.Name = this.TxtName.Text.Trim();
// string WhereString = this.TxtName.Text.Trim();
MaterialManager materiamanager = new MaterialManager();
materiamanager.selectByWhere(material.Name);
}