1. 单独对象简单属性操作

2. One 2 Many 操作

3. Many 2 Many 操作

4. Query的自定义查询操作。 

 

 

http://www.cnblogs.com/Jerry-Chou/archive/2009/11/02/light-weight-orm-for-net-publishing.html

实在是非常简单。。。单个表对象的orm映射操作。每天有参考价值

 

http://www.cnblogs.com/huobazi/archive/2008/01/31/dbentry.html

1. 继承了DbObjectModel<Book>, 抽象类

貌似可以直接被http访问操作。 

    User u = new User();
    u.Name 
= "tom";
    DbEntry.Save(u);

 

1对多的查询操作: 

[DbTable("People")]
public abstract class Person : DbObjectModel<Person>
{
    [Length(
50)]
    
public abstract string Name { getset; }

    [HasOne(OrderBy 
= "Id DESC")]
    
public abstract PersonalComputer PC { getset; }

    
public Person() { }
    
public Person(string Name) { this.Name = Name; }
}

相关文章:

  • 2021-11-21
  • 2021-12-03
  • 2021-05-25
  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
猜你喜欢
  • 2021-12-25
  • 2021-04-14
  • 2022-12-23
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案