首先优化代码的方式 [英] optimized way for code first

查看:60
本文介绍了首先优化代码的方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi
起初对不起我的英语

i我正在写一个课程经理网站,想先用数据库代码。

i测试迁移播种和我的模型的库类..

但是有很多方法可以实现它..

i需要帮助才能知道什么是最好的和优化的方式和资源for it

非常感谢

hi at first sorry for my english
i am writing an course manager web site an want to use code first for database.
i tested migration for seeding and library class for my model..
but there is a lot of way to implement it..
i need the help to know what is the best and optimized way and resources for it
thanks alot

推荐答案

这个问题没有确切的答案,至少没有一个适合快速答案论坛。

以下是几个关键点:



  • 精确定义您的规格。
  • 密集使用您的搜索引擎。 谷歌是你的朋友规则。
  • 查找示例实现(例如,在CodeProject上;但是还有其他来源)。
  • 研究它们并理解它们是如何工作的(相关文章)
  • 开始编码,根据您从前几个阶段学到的知识来适应您的需求。
  • 彻底调试。调试远非可选技能。
  • 最终将您的解决方案绑定到源控制系统(存在一些公共的解决方案:例如github或gitlab)。它可以让你在修改后突然搞砸了东西时快速回来。这也允许您创建分支并对基础项目周围的变换进行测试。
There is no precise answer to that question, at least none that fits in a quick-answers forum.
Here are a few key points:

  • Define your specifications precisely.
  • Use your search engine intensively. The 'Google is you friend' rule.
  • Find example implementations (here on CodeProject for example; but there exist other sources).
  • Study them and understand how they work (associated article can be of a great help).
  • Start coding, adapting to your needs with what you've learnt from previous stages.
  • Debug toroughly. Debugging is far from an optional skill.
  • Bind your solution to a source control system, eventually (there exist some public ones: github or gitlab, for example). It will allow you to get back quickly when things suddenly have been screwed up after a modifcation. This also allows you to create branches and make tests of evolutions around your base project.


这篇关于首先优化代码的方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆