public SetPrimaryKey ( string key ) : void | ||
key | string | |
Результат | void |
private ITransformDataReader CreateSqlDataReader(DataInputModel source) { var temp = source.Connection.Split('.'); var logicDbName = temp[0]; var queryName = temp[1]; var connection = new SqlConnection(_connectionStringProvider.GetConnectionString(logicDbName)); var sql = SqlNamedQueryProvider.Instance.Get(queryName); IDictionary <string, object> parameters = Newtonsoft.Json.JsonConvert.DeserializeObject <IDictionary <string, object> >(source.Filter); var reader = new SqlTransformDataReader(connection, sql, parameters); reader.SetPrimaryKey(source.PrimaryKey); return(reader); }
private ITransformDataReader CreateSqlDataReader(DataInputModel source) { var temp = source.Connection.Split('.'); var logicDbName = temp[0]; var queryName = temp[1]; var connection = new SqlConnection(_connectionStringProvider.GetConnectionString(logicDbName)); var sql = SqlNamedQueryProvider.Instance.Get(queryName); IDictionary<string, object> parameters = Newtonsoft.Json.JsonConvert.DeserializeObject<IDictionary<string, object>>(source.Filter); var reader = new SqlTransformDataReader(connection, sql, parameters); reader.SetPrimaryKey(source.PrimaryKey); return reader; }