firstname

Microsoft Dynamics Crm Sdk - Is this query possible?

匿名 (未验证) 提交于 2019-12-03 07:50:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am exploring the "QueryExpression" mechanism used to Retrieve data via the Dynamics CRM SDK, and I think I have hit a problem / limitiation with the SDK, but I would like to ascertain that for certain.. Given this desired SQL: Select C.firstname, C.lastname FROM contact C INNER JOIN customeraddress A on C.contactid = A.parentid WHERE ((C.firstname = 'Max' AND C.lastname = 'Planck') OR (C.firstname = 'Albert' AND C.lastname = 'Einstein')) OR A.Line1 = 'The secret moonbase' I cannot appear to translate the filter criteria above (the where

ElasticSearch NEST Search

匿名 (未验证) 提交于 2019-12-03 03:10:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm encountering an unexpected error when I try to perform a search on an ElasticSearch instance. I'm following the documentation here ( http://nest.azurewebsites.net/nest/quick-start.html ) verbatim, but I"m getting the error "Error 1 Cannot convert lambda expression to type 'Nest.SearchDescriptor' because it is not a delegate type." The first s of "s => s" is being highlighted. Maybe it's just a C# syntax issue. Any ideas? var searchResults = client.Search<Person>(s=>s .From(0) .Size(10) .Query(q=>q .Term(p=>p.Firstname, "martijn") ) );

Angular 2: formGroup expects a FormGroup instance. Please pass one in

匿名 (未验证) 提交于 2019-12-03 03:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am creating a form in Angular 2. My goal is to get data from the API and pass it into the form for editing purposes. However, I am running into this error: EXCEPTION: Uncaught (in promise): Error: Error in ./EditPatientComponent class EditPatientComponent - inline template:1:10 caused by: formGroup expects a FormGroup instance. Please pass one in. Here is the current code with the error. html <section class="CreatePatient"> <form [formGroup]="patientForm" (ngSubmit)="onSubmit()"> <div class="row"> <div class="form-group col-12 col-lg-3">

JSLint Error: Unexpected &#039;this&#039;

匿名 (未验证) 提交于 2019-12-03 03:03:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Having trouble understanding why JSLint is surprised by my use of this in the following code: function testConstr (x) { 'use strict'; this.joker = "Whyyy sooo seriousss?"; this.x = x; } For both property assignments, JSLint says: Unexpected 'this'. How do I correct my code? 回答1: Your code might be perfectly correct (it might also be problematic, depending on how you call testConstr ). My suggestion is: tell JSLint to shut up Or don't use JSLint at all. 回答2: So in other words, JSLint doesn't automatically expect me to use a constructor

Permission denied (publickey) errors on Windows when using Moovweb

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm able to authenticate, generate, push etc just fine with my SSH keys and Moovweb credentials on my Mac and Linux machines. However, on my Windows machine, using Git Bash, I get an SSH Permission denied (publickey) error. The error message is below: $> moov generate 123dsfsdsf nytimes.com Running environment checks. Verifying that git is installed...OK Checking that current 123dsfsdsf directory doesn't exist...OK Registering project with MoovCloud. Authenticating with MoovCloud. Checking for git access...Enter passphrase for key '/Users

Sorting an observableArray for one of the templates

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have the following view model: function instance(id, FirstName){ $.extend(this, { id: ko.observable(id || ''), FirstName: ko.observable(FirstName || '') }); } I have some instances in an observableArray: ko.observableArray([new instance(...), new instance(...), ...] With the following template: <ul data-bind='template: {name: "instanceTemplate", foreach: instances}'></ul> And another template: <ul data-bind='template: {name: "anotherInsTmpl", foreach: instances}'></ul> In first ul I need to render templates without sorting, in the second

angularjs: $filter is undefined when trying to get filtered data

匿名 (未验证) 提交于 2019-12-03 02:54:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Since days im trying to get this running: With the following snippet i want to filter some persons and after onchange was fired receive the objects which have been filtered. see this Code live here: http://jsbin.com/isojof/1/ Any idea? There is noch $filter Object yet...but how to create one? $filter('filter') is obviously not working! <html ng-app> <head> <meta charset="UTF-8"> <title>Document</title> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.1/angular.min.js"></script> </head> <body ng

Problem with UpdateSourceTrigger=PropertyChanged and StringFormat in WPF

匿名 (未验证) 提交于 2019-12-03 02:54:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a text box in my application which is data bound to a decimal field in my class and the binding mode is two way. I am using StringFormat={0:c} for currency formatting. This works fine as long as I don't touch 'UpdateSourceTrigger'. If I set UpdateSourceTrigger=PropertyChanged , It stops formatting the text that I am entering. here is my code example Employee.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; namespace Converter { public class Employee :

PHP/MySQL: Highlight “SOUNDS LIKE” query results

匿名 (未验证) 提交于 2019-12-03 02:52:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Quick MYSQL/PHP question. I'm using a "not-so-strict" search query as a fallback if no results are found with a normal search query, to the tune of: foreach($find_array as $word) { clauses[] = "(firstname SOUNDS LIKE '$word%' OR lastname SOUNDS LIKE '$word%')"; } if (!empty($clauses)) $filter='('.implode(' AND ', $clauses).')'; $query = "SELECT * FROM table WHERE $filter"; Now, I'm using PHP to highlight the results, like: foreach ($find_array as $term_to_highlight){ foreach ($result as $key => $result_string){ $result[$key]=highlight_stuff(

Is nameof() evaluated at compile-time?

匿名 (未验证) 提交于 2019-12-03 02:52:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: In C# 6, you can use the nameof() operator to get a string containing the name of a variable or a type. Is this evaluated at compile-time, or at runtime via some Roslyn API? You can read about the nameof() operator at the official discussion pointed out in the accepted answer , or the dedicated post at my blog . On 2000things.com , you can find its description and example of its use. 回答1: Yes. nameof() is evaluated at compile-time. Looking at the latest version of the specs: The nameof expression is a constant. In all cases, nameof(...) is