Definitionپێناسە
In app architecture, the class that is the single source of truth for one kind of data: it gets the data from (network, local storage), caches it and hands clean model objects to the .
لە تەلارسازیی ئەپدا، ئەو کلاسەیە کە تاکە سەرچاوەی ڕاستیی یەک جۆرە دراوەیە: لە (ڕایەڵە، خەزنکردنی ناوخۆیی) وەریدەگرێت، دەکات و ئۆبجێکتی مۆدێلی ڕێکوپێک دەداتە .
Exampleنموونە
TodoRepository asks TodoApiService for the list once, keeps it and gives the same list to every screen.
TodoRepository جارێک داوای لیستەکە لە TodoApiService دەکات، هەڵیدەگرێت و هەمان لیست دەداتە هەموو شاشەکان.
Other Kurdish renderings in useوەرگێڕانە کوردییەکانی تر
کۆگای دراوەکە، کۆگاکانی دراوە، کۆگایەکی دراوە، کۆگای دراوەی
Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە
Proposed: کۆگا ('store'), as in the registry's key-value-store «کۆگای کلیل و نرخ». Not code-repository (a Git repository, «کۆگای کۆد»).
Related termsزاراوە پەیوەندیدارەکان
Videosڤیدیۆکان
The data layer: each data source works with one source (network, database, files); a repository per data type combines them as the source of truth.
: هەر لەگەڵ یەک شوێن کار دەکات (، ، )؛ بۆ هەر جۆرە کۆیان دەکاتەوە و دەبێتە سەرچاوەی ڕاستی.