iphone - Core Data: 3 table join? - August 15, 2015 Get link Facebook X Pinterest Email Other Apps I know core data is not a database and there are many differences, is this one? In a database, I will generally have the following A - >> B - >> C Many "B" in "A" C " is the query," All I know is that c.attr = 'X' is easily written: from select a, b, C where a.id = b.aid and b.id = c.bid and c.attr = 'x' in the core data, I want to do the same, but Such as using a predicate: NSPredicate * predicate = [NSPredicate predicateWithFormat: @ "any BS.cs.atr =% @", "X"]; [Continuous Setty: Unit A ]; [Ninviidia Reagent Expression '], Reason:' Multiple keys are not allowed here ' I am right to understand whether the database is in multi-table There is a limit on joining? I googled around and could not find a definite answer. My current solution looks like a query: NSPredicate * predicate = [NSPredicate predicateWi ThFormat: @ "fetch fetch for any cs.attr =% @", "X"]; ... NSArray * bs = // exec (B * b in bs) {// add ba a array} // return array Is there any good Way? Thanks in advance for the idea. This is going backwards First of all, Linking ID is not required because all related objects are already connected to the relationship, meaning that construction like like a.id = b.aid and b.id = c.bid is not required . Secondly, you usually set the Fetch unit for the unit getting the defined test. In this situation, if he is c.attr = "X" , then you set your license to C and you should see something in your understanding: NSPredicate * p = [NSPredicate predicateWithFormat: @ "attr =% @", xValue]; This will return an array all the C examples that complete the test. Then, to find any special B or A , there is a case of running in respect to each C if your The inverse relationship is an example - >> B & lt; - >> C, then you only ask C for the value of ba such as: AObject * anA = aCinstance.ba; It is important to remember that you are not working with the table, you are working with the object graph. Set up to bring you a particular unit and then follow the relationships of filtered institutions. Get link Facebook X Pinterest Email Other Apps Comments Post a Comment Popular Posts IronPython in C#: No module named xmlrpclib - I am trying to create a web application with an interactive console for IronPython. When I try to import xmlrpclib into the General console of IronPython, it works. However, if I use IronPython inside my C # code, then it does not put an exception "a module named xmlrpclib", is it a known issue? Any solution to solve this issue? Here is the code: var testcode = @ "import xmlrpclib; apiarver = xmlrpclib.ServerProxy ('address', allow_none = true); print APIServer.Hello () ; "; Mystream str = newest Mystream (); ScriptEngine Engine = Python. Cretegenine (); Engine. Retyme.io asset output (str, system text encoding. ASCII); Engine. Serial.io.setuperoutput (str, systemtext.edcoding.aspx); ScriptScope scope = engine.CreateScope (); ScriptSource src = engine.CreateScriptSourceFromString (testCode); Src.Execute (scope); Sorry for the silly question, it has come to know that there is a path used by IronPathon inside me. The C # code was not correct. I ... qt creator - QtCreator importing makefile projects - Have you ever tried importing Classic C ++ / project into Qt Creator? Say that I wanted to use some libraries in my GUI project, which must be created. how can I do this? In Qt Creator 2.0.1 you can import projects using only * * Cmake, * .creator, * .pro or * .qmlproject Then switch to cmake and you can import the project into Qt builder (Welcome tab -> Open project ...). Alex php - cURL Cookie and 307 redirect issue - I currently have a script that loads my client using curls on another server Currently, the settings curl_setopt ($ CH, CURLOPT_RETURNTRANSFER, 1); Curl_setopt ($ CH, CURLOPT_FOLLOWLOCATION, TRUE); Curl_setopt ($ ch, CURLOPT_AUTOREFERER, true); Curl_setopt ($ ch, CURLOPT_USERAGENT, $ UserAgent); Curl_setopt ($ CH, CURLOPT_HEADER, 0); $ Usecookie = ROOT_PATH "/public_html/football_parser/cookie.txt"; If ($ usecookie) {if (! Is_writable ($ usecookie)) {return "$ usecookie can not write cookie file, change the file's permission to 777 or read only for windows."; } Curl_setopt ($ ch, CURLOPT_COOKIEJAR, $ usecookie); Curl_setopt ($ ch, CURLOPT_COOKIEFILE, $ usecookie); } $ Output = curl_xac ($ ch); I'm trying to load two example URLs statto.com/football/teams/newcastle-united/2005-2006/results and statto.com/football/teams/newcastle-united/2008-2009/results Without a second load without any problems curl_setopt ($ ch, CURLOPT_FOLLOWLOCATION, TR... Powered by Blogger