Gnéithe SharePoint & Management Solutions — Ná Nábac an U i CRUD (nó an D ar an ní sin)

Táimid chaitheamh le chéile go leor ama ag smaoineamh faoi réitigh SharePoint — conas a chruthú dóibh, a uirlis a úsáid, cad a tharlaíonn nuair a theipeann orthu sin a imscaradh, poist uaineadóir, scopes, etc. We spend so much time thinking about the up-front bits that it’s easy to forget that we need to retract them as well. Retracting solutions is probably more difficult, ó thaobh dearadh coincheapa, than deploying them. Deployment is basically a cookbook affair. Typically, shuiteáil gné, b'fhéidir go bhfuil glacadóir gné luchtú cuid de na sonraí isteach i liosta, that sort of thing. Mar sin féin, Is retracting fhéadfadh a bheith níos casta.

Is féidir le réiteach a tugadh artifacts mar seo a chruthú:

  • Cineál Ábhar
  • Liosta Sainmhíniú
  • Sainmhíniú tSuímh
  • Sonraí i liosta
  • Fiú glacadóirí
  • Foirmeacha InfoPath

Téann an liosta ar.

Cé go bhfuil sé ar ndóigh tábhachtach a dhearadh ar réiteach go instantiates na artifacts i gceart, it’s just as important to consider the update and delete cases. If your solution creates a new list and populates that list with data, cad a tharlaíonn nuair a bhíonn an tuaslagán retracted? In some cases, the list should be deleted. In other cases, it should be left intact for historical purposes. Your business requirements will guide you to the right decision.

Chun cabhrú leis an, create a matrix that lists each artifact your solution deploys to SharePoint. List three columns per artifact, ceann amháin le haghaidh a chruthú, thabhairt cothrom le dáta agus a scriosadh. For each case, an toradh ceart don oibríocht a chinneadh.

This sort of analysis is obviously best done before the solution is ever deployed to a SharePoint farm. Mar sin féin, cosúil le caitheamh tobac, it’s never too late to start doing things correctly. Create that matrix and develop a plan to address the missing update/delete scenarios. It may be a hard problem to solve, ach ar a laghad go mbainfidh tú tar éis a chur i mbosca ar fud an fhadhb.

</deireadh>

Liostáil le mo bhlag.

Lean mé ar Twitter ag http://www.twitter.com/pagalvin

Clibeanna Technorati:

2 smaointe ar "Gnéithe SharePoint & Management Solutions — Ná Nábac an U i CRUD (nó an D ar an ní sin)

  1. John Bender

    @ Aon ainm

    Sin cad é an rang Glacadóir Gné haghaidh. A scríobh tú cód saincheaptha a láimhseáil cad a bhí riamh ba mhaith leat laistigh den tSamhail Oibiachta i modhanna shárú laistigh de do glacadóir Gné saincheaptha. Féach an t-alt MSDN anseo.

    Hope that helps 🙂

    @ Paul

    Tá mé ag nascadh airteagal seo sa mhí SharePoint i láthair grúpa úsáideora mar gheall ar, mar a pléadh ag an mhí SPUG, tá sé seo i ndáiríre ceist lárnach a chruthú gnéithe láidir SharePoint.

    -john bender

    nickelcode.com (blog)

    Freagra
  2. Mike Birtwistle
    When I started developing solutions and features I did look for a setting somewhere in the definition that defines what happens on deletion or update. It left me wondering if there should be a few built in behaviours to a WSP – or a swtich on stsadm – that do some of the common tasks you mentioned above such as on deleting a solution – remove everything or leave everything and on updating – bhaint agus a athsholáthar nó go simplí cothrom le dáta an sainmhíniú agus ansin tá an rogha a dhéanamh ar ghníomhaíocht saincheaptha i glacadóir gné.
    Freagra

Leave a Reply

Ní thabharfar do sheoladh r-phoist a fhoilsiú. Réimsí riachtanacha atá marcáilte *