Пример #1
0
 public static void Save(T_PRODUCTEntity obj)
 {
     if (obj != null)
     {
         obj.Save();
     }
 }
Пример #2
0
        /// <summary>根据主键获取一个实体</summary>
        public static T_PRODUCTEntity RetrieveAT_PRODUCTEntity(decimal ID)
        {
            T_PRODUCTEntity obj = new T_PRODUCTEntity();

            obj.ID = ID;
            obj.Retrieve();
            if (obj.IsPersistent)
            {
                return(obj);
            }
            else
            {
                return(null);
            }
        }