ef code first transform,add ef power tools add-in,add tangible t4 editor for enhancement.

use ef power tools, as to .edmx file,right click at view, choose generate database from model, then copy the generated sql text, run the text in database, use ef power tools add in to generate mappings for code first usage.

原文地址:https://www.cnblogs.com/hualiu0/p/5002767.html