我有一个评估需要解决。在提供给我的项目解决方案中,我希望得到一个 .csv 文件来进行处理。这是它的样子;
asset id,file_name,mime_type,created_by,email,country,description
51df6a98-614e-40ef-8885-95ae50940058,ElitProin.aam,application/x-authorware-map,sblack0,jmitchell0@huffingtonpost.com,United States,Maecenas ut massa quis augue luctus tincidunt. Nulla mollis molestie lorem. Quisque ut erat.
279899c1-bc63-495c-94c5-57f25c881ed2,MusVivamusVestibulum.xla,application/x-excel,iadams1,rhenry1@xrea.com,Canada,"Curabitur in libero ut massa volutpat convallis. Morbi odio odio, elementum eu, interdum eu, tincidunt in, leo. Maecenas pulvinar lobortis est."
3060b1db-9a0a-4046-b10a-b90a0c440070,NullaUltrices.sit,application/x-sit,jmatthews2,jadams2@ft.com,Japan,"Duis bibendum, felis sed interdum venenatis, turpis enim blandit mi, in porttitor pede justo eu massa. Donec dapibus. Duis at velit eu est congue elementum."
7ef8ddf4-0b60-43e6-9e17-21029da02c69,Eros.tsv,text/tab-separated-values,dadams3,jmoreno3@joomla.org,Serbia,"Curabitur in libero ut massa volutpat convallis. Morbi odio odio, elementum eu, interdum eu, tincidunt in, leo. Maecenas pulvinar lobortis est."
588610a3-b546-4c2e-822d-c822ba20a775,BlanditNam.aim,application/x-aim,dpierce4,aortiz4@devhub.com,United States,In congue. Etiam justo. Etiam pretium iaculis justo.
3de294a8-8f13-4f86-b447-92e8fd79277d,NecCondimentumNeque.jpe,image/jpeg,pyoung5,ckim5@ft.com,Romania,"Fusce posuere felis sed lacus. Morbi sem mauris, laoreet ut, rhoncus aliquet, pulvinar sed, nisl. Nunc rhoncus dui vel sem."
209bf3d7-e792-4f3f-98e8-240efcf81e31,DuisMattisEgestas.gif,image/gif,ldaniels6,mreid6@seattletimes.com,Belgium,"Curabitur in libero ut massa volutpat convallis. Morbi odio odio, elementum eu, interdum eu, tincidunt in, leo. Maecenas pulvinar lobortis est."
975eaf96-dd9f-4534-89a6-0ebabb730aa0,HacHabitassePlatea.arj,application/octet-stream,smorales7,jgarrett7@geocities.jp,Spain,In congue. Etiam justo. Etiam pretium iaculis justo.
要求我填写的申请书是这样的
// Create a domain model via POCO classes to store the data available in the CSV file below
// Objects to be present in the domain model: Asset, Country and Mime type
// Process the file in the most robust way possible
// The use of 3rd party plugins is permitted
从这些步骤中我了解到,我实现了一个类结构;
public class Asset
{
public int assetID { get; set; }
}
public class Country
{
public int countryName { get; set; }
}
public class Mime
{
public int mime { get; set; }
}
但是关于POCO背后缺乏理论概念,我不确定我在做什么,或者我应该做什么。
谢谢。