Exemplo n.º 1
0
		public ViewMap( ObjectMap map, string propertyName, Type propertyType, CustomViewAttribute cv )
		{
			this.map = map;
			this.propertyName = propertyName;
			this.propertyType = propertyType;
			this.cv = cv;
			if( map != null && cv.NavigateUrlFormat != null )
			{
				string[] keys = map.GetPrimaryKeyNames( true );
				primaryKeyName = keys[ 0 ];
			}
		}
Exemplo n.º 2
0
 public ViewMap(ObjectMap map, string propertyName, Type propertyType, CustomViewAttribute cv)
 {
     this.map          = map;
     this.propertyName = propertyName;
     this.propertyType = propertyType;
     this.cv           = cv;
     if (map != null && cv.NavigateUrlFormat != null)
     {
         string[] keys = map.GetPrimaryKeyNames(true);
         primaryKeyName = keys[0];
     }
 }