为什么Activerecord查询返回已排序的数据

时间:2015-06-07 04:14:55

标签: ruby-on-rails join activerecord has-many-through

我有以下数据 如您所见,有一个故事模型和目的模型以及一个 System.ServiceModel.EndpointAddress endpointAddress = new System.ServiceModel.EndpointAddress("net.tcp://YourIpAddress:4502/CTMSEngine/net"); System.ServiceModel.Channels.CustomBinding customBinding = new System.ServiceModel.Channels.CustomBinding(); System.ServiceModel.Channels.BinaryMessageEncodingBindingElement BMEelement = new System.ServiceModel.Channels.BinaryMessageEncodingBindingElement(); System.ServiceModel.Channels.TcpTransportBindingElement TcpTelement = new System.ServiceModel.Channels.TcpTransportBindingElement(); customBinding.Elements.Add(BMEelement); customBinding.Elements.Add(TcpTelement); TcpTelement.MaxReceivedMessageSize = 2147483647; TcpTelement.MaxBufferSize = 2147483647; proxy = new ServerConnectionClient(customBinding, endpointAddress); 联接模型Has_many_through 现在连接表的数据为[4,3],但在查询TalePurposeJoin上我得到了[3,4] 我想保留db命令。 什么是活动记录在幕后做,为什么以及如何阻止它。

这是查询sql正在生成

tale.purpose_ids

Joins

0 个答案:

没有答案