/// <summary> /// Deprecated Method for adding a new object to the CommunityPhotoApproval EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCommunityPhotoApproval(CommunityPhotoApproval communityPhotoApproval) { base.AddObject("CommunityPhotoApproval", communityPhotoApproval); }
/// <summary> /// Create a new CommunityPhotoApproval object. /// </summary> /// <param name="cpa_id">Initial value of the cpa_id property.</param> /// <param name="u_username">Initial value of the u_username property.</param> /// <param name="p_id">Initial value of the p_id property.</param> /// <param name="cpa_approved">Initial value of the cpa_approved property.</param> /// <param name="cpa_timestamp">Initial value of the cpa_timestamp property.</param> public static CommunityPhotoApproval CreateCommunityPhotoApproval(global::System.Int32 cpa_id, global::System.String u_username, global::System.Int32 p_id, global::System.Boolean cpa_approved, global::System.DateTime cpa_timestamp) { CommunityPhotoApproval communityPhotoApproval = new CommunityPhotoApproval(); communityPhotoApproval.cpa_id = cpa_id; communityPhotoApproval.u_username = u_username; communityPhotoApproval.p_id = p_id; communityPhotoApproval.cpa_approved = cpa_approved; communityPhotoApproval.cpa_timestamp = cpa_timestamp; return communityPhotoApproval; }