public static void Save(XiHuan_GoodsTypeEntity obj)
 {
     if (obj != null)
     {
         obj.Save();
     }
 }
        /// <summary>根据主键获取一个实�?/summary>
        public static XiHuan_GoodsTypeEntity RetrieveAXiHuan_GoodsTypeEntity(int Id)
        {
            XiHuan_GoodsTypeEntity obj = new XiHuan_GoodsTypeEntity();

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