예제 #1
0
 public NeoDatisStoredClass(ClassInfo ci, NeoDatisLocalConnection connection)
 {
     this.ci = ci;
     this.connection = connection;
     Name = ci.GetFullClassName();
     var classAttributeInfos = ci.GetAttributes();
     fields = classAttributeInfos.Select(cai => (Field) new NeoDatisField() {Name = cai.GetName(), DataType = cai.GetAttributeType().GetName()}).ToList();
 }
 public IConnection Create(IConnectionProfile profile)
 {
     NeoDatisLocalConnection connection = null;
     if (profile is RemoteConnectionProfile)
         connection = new NeoDatisRemoteConnection();
     else
     {
         connection = new NeoDatisLocalConnection();
     }
     connection.Profile = profile;
     return connection;
 }