コード例 #1
0
        /// <summary>
        /// This function is used to delete an RecordCustomPropertyEntity.
        /// </summary>
        /// <param name="recorduid">The Record UID of the requested entity.</param>
        /// <param name="entitytypeguid">The Entity Type GUID of the requested entity.</param>
        /// <param name="name">The Name of the requested entity.</param>
        /// <returns>True on success, false on fail.</returns>
        public static bool Delete(System.Int32 recorduid, System.Guid entitytypeguid, System.String name)
        {
            RecordCustomPropertyEntity rcpe = new RecordCustomPropertyEntity(recorduid, entitytypeguid, name);
            DataAccessAdapter          ds   = new DataAccessAdapter();

            return(ds.DeleteEntity(rcpe));
        }
コード例 #2
0
        /// <summary>
        /// This function is used to insert a RecordCustomPropertyEntity in the storage area.
        /// </summary>
        /// <param name="recorduid">The Record UID of the requested entity.</param>
        /// <param name="entitytypeguid">The Entity Type GUID of the requested entity.</param>
        /// <param name="name">The Name of the requested entity.</param>
        /// <param name="val">The Value of the requested entity.</param>
        /// <returns>True on success, False on fail</returns>
        public static bool Insert(System.Int32 recorduid, System.Guid entitytypeguid, System.String name, System.String val)
        {
            RecordCustomPropertyEntity rcpe = new RecordCustomPropertyEntity();

            rcpe.RecordUID      = recorduid;
            rcpe.EntityTypeGUID = entitytypeguid;
            rcpe.Name           = name;
            rcpe.Value          = val;
            DataAccessAdapter ds = new DataAccessAdapter();

            return(ds.SaveEntity(rcpe));
        }
コード例 #3
0
        /// <summary>
        /// This method is used to retreive a single RecordCustomPropertyEntity by it Primary Key
        /// </summary>
        /// <param name="recordUID">Record Unique ID</param>
        /// <param name="entityTypeGUID">Entity Type Global Unique ID</param>
        /// <param name="name">Name</param>
        /// <returns>An entity if found, null if nothing found.</returns>
        public static RecordCustomPropertyEntity SelectSingle(int recordUID, Guid entityTypeGUID, string name)
        {
            RecordCustomPropertyEntity rcpe = new RecordCustomPropertyEntity(recordUID, entityTypeGUID, name);
            DataAccessAdapter          ds   = new DataAccessAdapter();

            if (ds.FetchEntity(rcpe) == true)
            {
                return(rcpe);
            }
            else
            {
                return(null);
            }
        }