示例#1
0
 /* TODO: revisit all copy functions
 override public bool Copy(Provider untyped)
 {
     //Never copy over the id, otherwise we would be creating
     //a pseudo-reference copy, which we don't want.
     //Do not copy over the system times and only the business logic
     //times since the system times are specific to a given instance.
     ProviderPhotoVote aPhotoVote = (ProviderPhotoVote)untyped;
     _entityPhotoVote.IsHidden = aPhotoVote._entityPhotoVote.IsHidden;
     _entityPhotoVote.IsFlag = aPhotoVote._entityPhotoVote.IsFlag;
     _entityPhotoVote.VoteWeight = aPhotoVote._entityPhotoVote.VoteWeight;
     _entityPhotoVote.Text = aPhotoVote._entityPhotoVote.Text;
     _entityPhotoVote.IsHidden = aPhotoVote._entityPhotoVote.IsHidden;
     _entityPhotoVote.PhotoId = aPhotoVote._entityPhotoVote.PhotoId;
     _entityPhotoVote.MemberId = aPhotoVote._entityPhotoVote.MemberId;
     _entityObject = _entityPhotoVote;
     return true;
 }
 */
 //=========================================================
 // PRIVATE FUNCTIONS
 //=========================================================
 protected ProviderPhotoVote(PhotoVote aPhotoVote)
     : base(aPhotoVote)
 {
 }
示例#2
0
 protected override void EntityClear()
 {
     _entityPhotoVote = new PhotoVote();
     _entityPhotoVote.Id = -1;
     _entityPhotoVote.SystemCreateDate = new DateTime();
     _entityPhotoVote.SystemEditDate = new DateTime();
     _entityPhotoVote.IsFlag = false;
     _entityPhotoVote.VoteWeight = 0;
     _entityPhotoVote.Text = String.Empty;
     _entityPhotoVote.IsHidden = false;
     _entityPhotoVote.PhotoId = -1;
     _entityPhotoVote.MemberId = null;
 }
 /// <summary>
 /// Create a new PhotoVote object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="photoId">Initial value of the PhotoId property.</param>
 /// <param name="isFlag">Initial value of the IsFlag property.</param>
 /// <param name="text">Initial value of the Text property.</param>
 /// <param name="isHidden">Initial value of the IsHidden property.</param>
 /// <param name="systemEditDate">Initial value of the SystemEditDate property.</param>
 /// <param name="systemCreateDate">Initial value of the SystemCreateDate property.</param>
 /// <param name="isShadowVote">Initial value of the IsShadowVote property.</param>
 /// <param name="voteWeight">Initial value of the VoteWeight property.</param>
 public static PhotoVote CreatePhotoVote(global::System.Int64 id, global::System.Int64 photoId, global::System.Boolean isFlag, global::System.String text, global::System.Boolean isHidden, global::System.DateTime systemEditDate, global::System.DateTime systemCreateDate, global::System.Boolean isShadowVote, global::System.Int32 voteWeight)
 {
     PhotoVote photoVote = new PhotoVote();
     photoVote.Id = id;
     photoVote.PhotoId = photoId;
     photoVote.IsFlag = isFlag;
     photoVote.Text = text;
     photoVote.IsHidden = isHidden;
     photoVote.SystemEditDate = systemEditDate;
     photoVote.SystemCreateDate = systemCreateDate;
     photoVote.IsShadowVote = isShadowVote;
     photoVote.VoteWeight = voteWeight;
     return photoVote;
 }
示例#4
0
 protected static ProviderPhotoVote _EntityToProvider(PhotoVote photoVoteEntity)
 {
     return new ProviderPhotoVote(photoVoteEntity);
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the PhotoVotes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPhotoVotes(PhotoVote photoVote)
 {
     base.AddObject("PhotoVotes", photoVote);
 }