コード例 #1
0
 public static SoftFluent.Samples.GED.Security.UserRole LoadByEntityKey(string key)
 {
     if ((key == string.Empty))
     {
         return(null);
     }
     SoftFluent.Samples.GED.Security.UserRole userRole;
     System.Type[] types = new System.Type[] {
         typeof(System.Guid),
         typeof(System.Guid)
     };
     object[] defaultValues = new object[] {
         CodeFluentPersistence.DefaultGuidValue,
         CodeFluentPersistence.DefaultGuidValue
     };
     object[]    v = CodeFluentPersistence.ParseEntityKey(key, types, defaultValues);
     System.Guid var0;
     var0 = ((System.Guid)(v[0]));
     System.Guid var1;
     var1     = ((System.Guid)(v[1]));
     userRole = SoftFluent.Samples.GED.Security.UserRole.Load(var0, var1);
     return(userRole);
 }