一:创建 Part 1:项目引用 Orchard.Framework; 2:创建 Models 文件夹; 3:在 Models 文件夹下创建类 ProductPartRecord,如下: public class ProductPartRecord : ContentPartRecord{ publ...
分类:
其他好文 时间:
2014-07-22 00:22:37
阅读次数:
261
通过一个内嵌类 "class Meta" 给你的 model 定义元数据, 类似下面这样: class Foo(models.Model):? ??? bar = models.CharField(maxlength=30) ??? class Meta:? ??????? # ... Model 元数据就是 ...
分类:
其他好文 时间:
2014-07-21 23:27:31
阅读次数:
190
Django对数据库的操作分用到三个类:Manager、QuerySet、Model。Manager的主要功能定义表级方法(表级方法就是影响一条或多条记录的方法),我们可以以models.Manager为父类,定义自己的manager,增加表级方法;QuerySet是Manager的方法返回的,是一...
分类:
数据库 时间:
2014-07-19 21:37:05
阅读次数:
527
在遍历数组、集合的时候,通常要获取元素的索引,本篇体验使用Knockout获取索引的2种方法。 假设有这样的一个模型: namespace UseIndex.Models{ public class Student { public int Id { get; set; } public strin...
分类:
Web程序 时间:
2014-07-18 23:37:55
阅读次数:
256
///
/// 接收用户消息
/// iftrue
/// 2014-07-08
///
public class Receive
{
public delegate Models.Send_Msg delegate_SendMsg(string msgType);
public delegate...
分类:
微信 时间:
2014-07-18 23:11:20
阅读次数:
519
我正在做一个出入库管理的简单项目,在Models里定义了这样的枚举类型 public enum InOrOut { [Description("出库")] Out = 0, [Description("入库")] In = 1 ...
分类:
其他好文 时间:
2014-07-18 21:11:47
阅读次数:
204
我下载的是voc-release51.按照这篇文章,都操作了一遍:http://blog.csdn.net/pozen/article/details/7023742#quote2.运行demo不成功 继续按照http://cfanz.cn/index.php?c=article&a=read&id...
Language-Independent Set Expansion of Named Entities Using the Web.Chao Wang,Venu Satuluri,Srinivasan Parthasarathy:Local Probabilistic Models for Lin...
分类:
其他好文 时间:
2014-07-16 20:14:17
阅读次数:
346
使用对象数据源IList models = ModelService.GetAllModels();comboBoxModelId.DataSource = models;comboBoxModelId.DisplayMember = "ModelName";comboBoxModelId.Valu...
分类:
其他好文 时间:
2014-07-10 14:55:39
阅读次数:
167
http://backbonejs.org/#introduction Backbone.js gives structure to web applications by providing models with key-value binding and custom events, coll...
分类:
Web程序 时间:
2014-07-08 10:27:09
阅读次数:
229