using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; namespace LYFZ.WeixinServiceDate.DAL { public class DAL_BindStoreUser : BaseDataOperate { string _tableName = "tb_BindStoreUser"; public override object ObjModel { get { return CurrentModel; } } public Model.Model_BindStoreUser CurrentModel { get { return new Model.Model_BindStoreUser(); } } public override string TableName { get { return _tableName; } set { _tableName = value; } } string _tableFieldNameString = ""; public override string TableFieldNameString { get { return _tableFieldNameString; } set { _tableFieldNameString = value; } } public Model.Model_BindStoreUser GetStoreUserData(string openId, string entId) { string sql = " select * from tb_BindStoreUser where EntID = '" + entId + "' and OpenID='" + openId + "' "; DataTable dt = QuaryDataSet(sql).Tables[0]; if (dt.Rows.Count > 0) { return (Model.Model_BindStoreUser)DataRowToModelObject(dt.Rows[0]); } else { return new Model.Model_BindStoreUser(); } } } }