Castle.ActiveRecord.ActiveRecordBase.ToString C# (CSharp) Méthode

ToString() public méthode

Return the type of the object with its PK value. Useful for logging/debugging
public ToString ( ) : String
Résultat String
		public override String ToString()
		{
			ActiveRecordModel model = GetModel(GetType());

			if (model == null || model.PrimaryKey == null)
			{
				return base.ToString();
			}

			PrimaryKeyModel pkModel = model.PrimaryKey;

			object pkVal = pkModel.Property.GetValue(this, null);

			return base.ToString() + "#" + pkVal;
		}