Castle.MonoRail.ActiveRecordSupport.ARDataBinder.ObtainPrimaryKey C# (CSharp) Method

ObtainPrimaryKey() private static method

private static ObtainPrimaryKey ( ActiveRecordModel model ) : PrimaryKeyModel
model Castle.ActiveRecord.Framework.Internal.ActiveRecordModel
return Castle.ActiveRecord.Framework.Internal.PrimaryKeyModel
		private static PrimaryKeyModel ObtainPrimaryKey(ActiveRecordModel model)
		{
			if (model.IsJoinedSubClass || model.IsDiscriminatorSubClass)
			{
				return ObtainPrimaryKey(model.Parent);
			}
			return model.PrimaryKey;
		}