provider

Simple (Dumb) LINQ Provider

Hi, How easy would it be to write a dumb LINQ provider that can just use my class definitions (which don't have any object references as properties) and give me the translated SQL. It can assume the name of the properties and the columns to be same as well as the names of the classes and the underlying tables. Can you please give me som...

Best way to annotate provider chains

Media Browser has a provider model, this is basically a chain of classes that get called in a particular order for each entity. So for example we have: providers = new List<IMetadataProvider>(); providers.Add(new ImageFromMediaLocationProvider()); providers.Add(new ImageByNameProvider()); providers.Add...

What is the difference between a Provider and a Connector in database world?

I create an new text file, rename it to test.udl and double click on the file. This brings up the OLE DB connection string dialog box. The first tab shows a list of providers installed on my machine. I need a MySQL Connection string, but I do not have a MySql provider in the list. So I download MySql ADO.NET Connector from the internet a...

How to tell if I'm running under a web server or not?

I'm writing a C# .NET module and I would like to use the provider pattern. If my code is running on a web server, I have access to System.Web.Configuration and can call ProvidersHelper to load an appropriate provider as determined by the web.config data. If my code is running in a stand-alone environment, I won't have access to this...

Why do custom membership provider files have to be in the app_code folder of my web app?

I'm writing a custom memberhsip provider based on the source for the SQL provider and I tried first making the SQL Provider a separate project. Yet, the web app wouldn't recognize it unless I put all the source in an APP_Code folder in my web app. Is this how you implement a custom provider? I thought I could simply reference the provid...

Ignoring ProviderUserKey in Custom Role Provider Implementation

I have no use for the ProviderUserKey in the MembershipUser object, as my roles database has it's own ID's. If I'm using C#, how do I call the membershipuser constructor so that it creates the user without this key? What are the implications of not providing this key to the provider? Does the ProviderUserKey become part of the Principa...

How to implement a custom cache provider with ASP.NET MVC

I am migrating a MonoRail application to ASP.NET MVC 1.0. In my original application I wrote a custom cache provider (a distributed cache provider using memcached). In MonoRail this task was very easy because the framework used interfaces and there is ICacheProvider that looks like this: public interface ICacheProvider : IProvider, IMRS...

ASP.NET Active Directory Membership Provider and SQL Profile Provider

Hey All, I am currently designing a Membership/Profile scheme for a new project I am working on and I was hoping to get some input from others. The project is a ASP.NET web application and due to the short time frame, I am trying to use any and all built in .NET framework components I can. The site will probably entertain < 5000 users...

membership provider

how do i setup my web.config to use Forms authentication, Set The Membership provider to ActiveDirectoryMembershipProvider and use the built-in login control. so that I can log into my web application using a valid active directory username and password??? ...

Does anyone know how to write an Apple Push Notification Provider in C#?

Apple really has bad documentation about how the provider connects and communicates to their service. I am confused about the protocol. If anyone out there could provide a C# sample of how this is don, it would be greatly appreciated. ...

NTLM/Windows Authentication and GetAllUsers()

I'm designing a web app which will be used on an intranet so Windows authentication mode is ideal. However, part of the app would need the ability to get a list of users (to pick users for assignments. Membership.GetAllUsers() doesn't apply (on its own) with windows-authentication. I can't use ActiveDirectoryMembershipProvider because...

Server Sync Provider and SessionParameters

I'm currently building a custom ServerSyncProvider I've already overrided the GetServerInfo, GetSchema and GetChanges methods, but aparently I'm not getting any session parameters on the server side, like @SyncClientIdHash or @SyncLastReceivedAnchor, that should be kept on the client (I haven't done anything alteration to my SqlCeClientS...

ASP.NET: How to create a connection from a web.config ConnectionString?

How do you construct a DbConnection based on a provider name? Sample provider names System.Data.SqlClient System.Data.OleDb System.Data.Odbc FirebirdSql.Data.FirebirdClient i have connection strings stored in my IIS server's web.config file: <connectionStrings> <add name="development" connectionString="Provider = IBMDA400...

SSO using CAS with ASP.NET membership provider backend

Hey Folks, I'm trying to utilize CAS to perform SSO on the same domain name. however i can't really understand CAS. does CAS provides user management or i have to implement it myself ? can i integrate ASP.NET membership provider into CAS as the athentication provider ? Thanks ! ...

How to use Sys.Services.ProfileService for non-default profile provider?

I want to write javascript to save to a profile provider that is NOT the default provider specified in web.config: <profile defaultProvider="SqlProfileProvider"> <providers> <clear /> <add name="SQLiteProfileProvider" applicationName="Gallery Server Pro" connectionStringName="SQLiteDbConnection" type="GalleryServerPro.Data.SQLite.S...

ASP.NET Provider Model for Data Access

Hello Just been introduced to the ASP.NET Provider Model as a potential data-access technology. My own idea is to use LINQ repositories, but want to keep an open mind. Any thoughts? Thanks ...

ASP.NET SQL Profile Provider - Does the ProfileBase.Create() method hit DB?

I am working with the SQLMemebershipProvider and using Profiles. I have a custom class called UserProfile that inherits from the ProfileBase class and I use this to set custom properties like "FullName". I am wanting to loop through all the users in the database and get access to their profile properties. On each iteration I am calling P...

myGeneration problem with OraOleDB.Oracle provider (?)

I can't make myGeneration tool to work correctly. This is the connection string that I use: Provider=OraOLEDB.Oracle.1;Password=pass123;User ID=user1;Data Source=oradb1src;Persist Security Info=True And when I click on Test connection I get: [System.Data.OleDb.OleDbException] - ORA-12154: TNS:could not resolve service name [orad...

SiteMap and multiple providers

Hey everyone, I have several sitemap providers(default, admin, etc) and run into a problem when I am using the admin provider. The root node always shows the home page of the default provider instead of the admin provider. Any ideas why and how this can be fixed? <siteMap defaultProvider="default" enabled="true"> <providers> <clear/...

Which event to handle in HttpModule for setting the current principal when dealing with providers?

I am facing a problem where I have to integrate with a custom HttpModule where the principal and identity are set on the current thread so that HttpContext.Current.User contains these. However I get the feeling that the eventhandler they used (PostAcquireRequestState) is way too late. Which is the best event to handle before the initial...