コード例 #1
0
        /// <summary>
        /// Copies from the given object.
        /// </summary>
        /// <param name="source">The source object to copy from.</param>
        public virtual void CopyFrom(
            DBObjectBase source)
        {
            // Condition added 2008-11-15, Uwe Keim.
            // Only set if not already set to allow copying between
            // different projects.
            if (_owningManager == null)
            {
                _owningManager = source._owningManager;
            }

            _id  = source._id;
            _tag = source._tag;
        }
コード例 #2
0
 public ValidateObjectEventArgs(DBObjectBase obj)
 {
     _obj = obj;
 }
コード例 #3
0
 /// <summary>
 /// Determines whether [is null or empty] [the specified obj].
 /// </summary>
 /// <param name="obj">The obj.</param>
 /// <returns>
 ///     <c>true</c> if [is null or empty] [the specified obj]; otherwise, <c>false</c>.
 /// </returns>
 public static bool IsNullOrEmpty(
     DBObjectBase obj)
 {
     return(obj == null || obj.IsEmpty);
 }
コード例 #4
0
			public ValidateObjectEventArgs(DBObjectBase obj)
			{
				_obj = obj;
			}
コード例 #5
0
		/// <summary>
		/// Copies from the given object.
		/// </summary>
		/// <param name="source">The source object to copy from.</param>
		public virtual void CopyFrom(
			DBObjectBase source)
		{
			// Condition added 2008-11-15, Uwe Keim.
			// Only set if not already set to allow copying between
			// different projects.
			if (_owningManager == null)
			{
				_owningManager = source._owningManager;
			}

			_id = source._id;
			_tag = source._tag;
		}
コード例 #6
0
		/// <summary>
		/// Determines whether [is null or empty] [the specified obj].
		/// </summary>
		/// <param name="obj">The obj.</param>
		/// <returns>
		/// 	<c>true</c> if [is null or empty] [the specified obj]; otherwise, <c>false</c>.
		/// </returns>
		public static bool IsNullOrEmpty(
			DBObjectBase obj)
		{
			return obj == null || obj.IsEmpty;
		}