Skip to content

Instantly share code, notes, and snippets.

@pauldambra
pauldambra / gist:1600123
Created January 12, 2012 12:01
custom profile
using System;
using System.Web.Profile;
namespace AcrHack.Models
{
public class CustomProfile : ProfileBase
{
//magic string
public static string ADDRESS = "address";
@pauldambra
pauldambra / gist:1600098
Created January 12, 2012 11:55
web config for profile provider
<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=152368
-->
<configuration>
<connectionStrings>
<add name="users" connectionString="Data Source=|DataDirectory|users.sdf;"
providerName="System.Data.SqlServerCe.4.0"/>
</connectionStrings>