Ejemplo n.º 1
0
 /// <summary>
 /// Initializes the view.
 /// </summary>
 public void Initializing(EntityMemberBox box, EntityMember member)
 {
     if (box == null)
     {
         throw new ArgumentNullException("box");
     }
 }
Ejemplo n.º 2
0
        public void Initializing(EntityMemberBox box, BootFX.Common.Entities.EntityMember member)
        {
            if (box == null)
            {
                throw new ArgumentNullException("box");
            }
            if (member == null)
            {
                throw new ArgumentNullException("member");
            }

            // set...
            if (member is EntityField)
            {
                EntityField field = (EntityField)member;
                if (field.EnumerationType != null)
                {
                    this.EnumType = field.EnumerationType;
                }
                else
                {
                    throw new InvalidOperationException(string.Format("Field '{0}' does not have an enumeration mapping.", member));
                }
            }
            else
            {
                throw new NotSupportedException(string.Format("Cannot handle '{0}'.", member));
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Initializes the view.
        /// </summary>
        public void Initializing(EntityMemberBox box, EntityMember member)
        {
            if (box == null)
            {
                throw new ArgumentNullException("box");
            }

            // readonly...
            this.ReadOnly = box.ReadOnly;
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Initializes the view.
        /// </summary>
        public void Initializing(EntityMemberBox box, EntityMember member)
        {
            if (box == null)
            {
                throw new ArgumentNullException("box");
            }
            if (member == null)
            {
                throw new ArgumentNullException("member");
            }

            // set...
            _member = member;
        }
Ejemplo n.º 5
0
 public void Initializing(EntityMemberBox box, BootFX.Common.Entities.EntityMember member)
 {
     // no-op...
 }