Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- namespace Projet___TestConnaissances
- {
- public class Database : IDatabase
- {
- public DataSourceContainer _Context
- {
- get
- {
- string ocKey = "ocm_" + HttpContext.Current.GetHashCode().ToString("x");
- if (!HttpContext.Current.Items.Contains(ocKey))
- HttpContext.Current.Items.Add(ocKey, new DataSourceContainer());
- return HttpContext.Current.Items[ocKey] as DataSourceContainer;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement