ORM Revolution --- EVE / ORM革命 —— 前夜




ORM Revolution - EVE

To be continued ...



Noebe Team
2007 - 10 -21





ORM革命 —— 前夜


待续 ...        

Noebe  工作组
2007 - 10 - 21


     class  Card : ObjBase
    {
        
public   string  CardType
        {
            
get  {  return   null ; }
            
set  { }
        }
    }

    
class  Person : ObjBase
    {
        
public  Person()
        {
        }

        
public   string  PersonName
        {
            
get  {  return   null ; }
            
set  { }
        }

        
public  Card Card
        {
            
get  {  return   null ; }
            
set  { }
        }

    }

    
class  TestClass
    {
        
public   void  test()
        {
            OrmManager.Initialize();

            Card card 
=   new  Card();
            card.CardType 
=   " Noebe.ORM " ;

            Person p 
=   new  Person();
            p.PersonName 
=   " pixysoft " ;
            p.Card 
=  card;

            OrmManager.Instance.Commit(p);

            Card test_card 
=  p.Card;

            Console.WriteLine(test_card.CardType);
            Console.WriteLine(p.PersonName);
        }
    }

// --------------------------

------ Test started: Assembly: Pixysoft.Framework.Noebe.ORM.dll ------

Noebe.ORM
pixysoft

1  passed,  0  failed,  0  skipped, took  1.89  seconds.




 If there is an ORM revolution, we hope it comes from China.



Join us! We need your help!  (NOSU, Non Open Source Union)
Email: [email protected]

如果有那么一场ORM革命,我希望他来自中国。


加入我们,我们需要您的帮助!(NOSU, Non Open Source Union)
Email: [email protected]

你可能感兴趣的:(orm)