Friday, August 24, 2007

Object Relational Mapping


Thursday, August 2, 2007

C# Compiler Mysteries

This is an ERROR

protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
SortedList sl = new SortedList();
}

This is NOT an ERROR

protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
SortedList sl = new SortedList();
}
}

Want to know more about this , check out
http://msdn2.microsoft.com/en-us/library/xaw06638(vs.80).aspx

And here you will find more opinions
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1780871&SiteID=1&pageid=0

Wednesday, August 1, 2007

Role Permission Explosion in Role Base Access Security [RBAC]


Formula: nCr = n! / [(n-r)! r!]

n : Possible Permissions

r : Possible Roles

So for 3 Permissions, possible roles are

3C1+3C2+3C3 = 7

So for 3 permissions, we have 7 possible roles in 1 application. If we have 2 applications then the no of roles will be 14.

Challenge

How to minimize / manage roles?

Solution:

By Grouping

  1. Role Hierarchy
  2. Role Linking

By Enforcing Business Rules