provider

Angular2 providers in bootstrap vs @component

爱⌒轻易说出口 提交于 2019-12-07 07:59:01
问题 From my understanding, you can define your application providers in your bootstrap call like this: bootstrap( App, [disableDeprecatedForms(), provideForms()]] ) or in your root component like this: @Component({ selector: 'my-app', providers: [disableDeprecatedForms(), provideForms()], ... ) However, I have created a form validator plugin that required the provideForms providers and this directive only works, when the bootstrap options. I have created a plunk to illstrate the problem: the

OpenId provider/server with Java

爱⌒轻易说出口 提交于 2019-12-07 03:17:59
问题 I'm trying to enhance an existing Java web application with an OpenId service, so that a logged in user can log into another OpenId enabled app using my web application as an OpenId provider. My first attempt was to use JOS as OpenId provider which should in turn use my app's database to get existing user names and passwords. Nevertheless I could not find any documentation for JOS, when I was trying to customize JOS to make it fit to my existing app ( It did not even compile Update: It only

Implementing string comparer in custom Linq Provider in VB

拜拜、爱过 提交于 2019-12-06 12:34:11
I'm attempting to follow this series of articles . I'm between parts 2 and 3 but am having some issues. I'm writing the code in VB.Net which has thrown a couple of quirks. Specifically, when visiting the expression tree, string comparisons aren't working as expected. This method in the QueryProvider ( Part 2 ) Protected Overrides Function VisitMethodCall(m As MethodCallExpression) As Expression If m.Method.DeclaringType = GetType(Queryable) AndAlso m.Method.Name = "Where" Then sb.Append("SELECT * FROM (") Me.Visit(m.Arguments(0)) sb.Append(") AS T WHERE ") Dim lambda As LambdaExpression =

runCommand provider in msdeploy's Manifest.xml file

此生再无相见时 提交于 2019-12-06 06:51:33
I am trying to include running a batch script (more, provided I can figure this out) as part of the deployment process via msdeploy by using the runCommand provider in the manifest file. This is what my manifest file looks like <MSDeploy.iisApp> <iisapp path="Default Web Site/SiteName" /> <dbfullSql path="msdeploy.config" transacted="false" /> ...(more calls to providers) <runCommand path="(call to batch script here)" /> </MSDeploy.iisApp> Everything in the manifest file runs fine, but it doesn't look like my command is actually running. A log of the outputs gives me this at the end where my

Windows 8 Spell checking provider

荒凉一梦 提交于 2019-12-06 06:17:02
I'm trying to implement my own Spell Check provider for Windows 8. I have a class which receives a word and returns the correct word, however, I cannot find the class or function in the Spell Checking Provider Sample by Microsoft where I receive the user input string and return for it the correction. Since you are implementing a spell checking provider, you will be implementing the ISpellCheckProvider interface. (In the sample you refer to, this is implemented by the SampleSpellCheckProvider class) There are actually two phases for spell checking. The first is checking to see whether some text

Relationship Between ASPNET Membership Provider Tables and Custom Membership Tables

人走茶凉 提交于 2019-12-06 05:12:21
I went through a custom profile provider example a while ago and I am now revisiting it. My database has all the dbo.aspnet_* tables created when I ran the aspnet registration wizard. In these tables I have aspnet_Profile which has a FK constraint pointing to aspnet_Users. I also have two tables in MyDB: The first, dbo.ProfileData, has a foreign key constraint pointing to dbo.Profile. What I want to understand is how the tables in MyDB relate to those in dbo.aspnet_*. Shouldn't there be a foreign key constraint (or some kind of relationship) between the profile tables in MyDB and the aspnet

SQLite and Entity Framework

余生颓废 提交于 2019-12-06 03:46:30
I'm trying to use SQLITE database with latest Entity Framework. I've installed SQLite provider x86 for .NET Framework 4.0 from here: http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki . I succesfully added SQLITE as new data source by using server explorer in Visual Studio 2012. Then, I added new ADO.NET Entity Model and tried to add tables from my simple sqlite database. For some reason these tables can't be added and error log says following: The data type 'longchar' is currently not supported for the target .NET Framework version; >>the column 'Name' in table 'main.Person

Android - Create Custom Calendar with Event

我怕爱的太早我们不能终老 提交于 2019-12-06 03:18:02
问题 I have an App which shows special Days. I want to integrate them into the calendar. The events are static, they don't change, so I don't have to update the calendar very often. I first thought of creating a local calendar and add the events, but new android versions (since 2.3?) seem not to support that; to implement I would have to create a Calendar Provider. I saw this project on github: https://github.com/dschuermann/birthday-adapter. It is very complicated; its main use is adding the

Using SQL Server as Orleans storage

限于喜欢 提交于 2019-12-06 03:16:01
问题 I'm trying to use SQL Server as a data store for Orleans. I have managed to get my solution working using the Azure Local Storage Emulator, but can't get it to work with a local instance of SQL Server. I've created the database using: https://github.com/dotnet/orleans/blob/master/src/OrleansSQLUtils/CreateOrleansTables_SqlServer.sql and made my config file look like the one here: http://dotnet.github.io/orleans/Documentation/Advanced-Concepts/Configuring-SQL-Tables.html This is my config file

ASP.NET MVC 2 - Implementing custom Metadata and Validator Providers

自作多情 提交于 2019-12-06 00:27:34
With the preview 2 release of ASP.NET MVC 2 , we now have base classes to implement our own custom providers for metadata and validation. Specifically, with ModelMetadataProvider and ModelValidatorProvider . There isn't a lot of documentation on these yet (just released yesterday as a preview , so I'm neither surprised nor disappointed). Has anyone gotten custom implementations of either of these working? A very simple example (metadata and validator for just "Required") would be great! Perhaps a lot of people have the same idea, but I'd like to use IronRuby to inject the metadata, and I'm