コード例 #1
0
        public virtual TileTagAssociation Copy(Tile tile, litePerson person, String ipAddress, String ipProxyAddress, DateTime?createdOn = null)
        {
            TileTagAssociation t = new TileTagAssociation();

            t.CreateMetaInfo(person, ipAddress, ipProxyAddress, createdOn);

            t.Tag  = Tag;
            t.Tile = tile;

            return(t);
        }
コード例 #2
0
ファイル: Tile.cs プロジェクト: EdutechSRL/Adevico
 public virtual Tag.Domain.TagItem GetDefaultTag()
 {
     if (Type != TileType.CommunityTag && Tags == null || !Tags.Where(t => t.Deleted == BaseStatusDeleted.None).Any() || Tags.Where(t => t.Deleted == BaseStatusDeleted.None).Count() > 1)
     {
         return(null);
     }
     else
     {
         TileTagAssociation tAssociation = Tags.Where(t => t.Deleted == BaseStatusDeleted.None).FirstOrDefault();
         if (tAssociation.Tag != null)
         {
             return(tAssociation.Tag);
         }
     }
     return(null);
 }