Use faker. Net to copy data

Source: Internet
Author: User

There is an identical name (faker. net) project is the C # Open-source porting Implementation of Ruby faker gem, which is mainly used to easily generate counterfeit data (although it is fake data, it looks very similar ), including name, address, and phone number. Faker is useful for both demonstration and test data.

How does it work? Read itsCodeYou will find that the solution contains some resource files that contain some possible quality values (such as first name and last name) of each attribute ), then, the data is generated by randomly mixing and matching the values. The more reserved values for each attribute, the more combinations, and the richer the result data. Based on your specific needs, you can modify the source file to reflect your data needs (for example, limited to the name or address of a region ). This article by Ollie riches shows how to use faker quickly.

This utilityProgramCompatible with. NET Framework 4.0, Silverlight 3-5, and Windows Phone 7.0 and 7.1. It is issued as a nuget package. They work in almost the same way, except for a few differences-possible attribute values are directly in the C # code (rather than in the resource file); in addition, it provides additional education) such as degree, Major, and school ).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.