예제 #1
0
 public Repository(Abstract data)
 {
     // root = new RepoFolder("");
     MetaData       = data;
     Name           = data.DatasetTitle;
     Summary        = data.Summary;
     Authors        = data.Authors;
     Url            = data.Url;
     ID             = ObjectId.GenerateNewId().ToString();
     data.DatasetId = ID;
     data.UpdateInDb();
 }
예제 #2
0
 public Repository(string name = "None")
 {
     //ID = GenerateUniqueID() ;
     MetaData = new Abstract("DEFAULT NAME", "no url", true, true, "NO SUMMARY FOUND");
     //root = new RepoFolder("");
 }