SPMetal tool is use to generate Entity Classes and reduce developer work drastically. SPMetail resides at location -
C:\program files\common files\microsoft shared\Web Server Extensions\15\BIN
Hence, below command will do the job and generate Entity class for us.
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\BIN>spmetal.exe /web:http://ram:40705/sites/site1 /namespace:LINQToSP /code:EmployeeEntities.cs
However, above command will generate Entity classes for all the list available in given website (/web). Generating N nos. of entity classes is of no use till we need it. However, we can too generate entity class for specific list.
Get all the details over here.
No comments:
Post a Comment