基本上我是DB先设计好的,所以就按现存在的table去写程式。1.Web.config里配置Db连接字串,Connection String Name为DefaultConnection --> 2.在Models里新建一个名为Log的model,如果没有指定table,...
分类:
其他好文 时间:
2015-09-12 22:14:34
阅读次数:
158
效果展示功能包含登录,注册,验证码用户相关--models.py--- 1 #!/usr/bin/env python 2 # -*- coding:utf-8 -*- 3 4 from django.db import models 5 import datetime 6 7 8 class...
分类:
数据库 时间:
2015-09-10 15:37:39
阅读次数:
256
ORM:就是类似于Django的models,我们可以不用SQL语句去操作数据库;只需要操作对象的属性和方法。先安装peewee,我是在Ubuntu的环境下:sudo pip install peewee(1)urllib 模块(2)@property的使用:把方法变为属性,前端页面可以直接调用(t...
分类:
编程语言 时间:
2015-09-09 13:19:59
阅读次数:
331
聚合 和 分组聚合:PlayMorphia 它提供了基于开发人员models的友好接口设想你定义了一个model。class Sales:@Entity public class Sales extends Model { public String employeeId; public...
分类:
其他好文 时间:
2015-09-08 21:58:45
阅读次数:
193
cshtml页面代码: @FormHelper.DropdownList(a => a.UserRoleId, model.Roles)Models页面代码:public List Roles { get; set; } = new List();数据绑定 this.Roles.Add(new...
分类:
其他好文 时间:
2015-09-07 19:18:48
阅读次数:
150
1)创建控制器生成代码如下(增删改查。。。)using MvcApplication32.Models;using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web....
分类:
其他好文 时间:
2015-09-05 07:42:09
阅读次数:
247
using MvcApplication32.Models;using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;namespace MvcAppli...
分类:
数据库 时间:
2015-09-05 06:36:00
阅读次数:
353
看一下自己的models文件:classHostList(models.Model):
ip=models.IPAddressField(unique=True,verbose_name=u‘IP地址‘)
hostname=models.CharField(max_length=30,verbose_name=u‘主机名‘)
group=models.ManyToManyField(‘Group‘,null=True,blank=True,verbose_name=u‘组名‘)..
分类:
其他好文 时间:
2015-09-04 22:45:46
阅读次数:
282
最新型号的设备列表https://www.theiphonewiki.com/wiki/Models 1 #import "iosutils/IOSUtils.h" 2 #import "sys/sysctl.h" 3 #import "sys/utsname.h" 4 5 @implementa....
分类:
移动开发 时间:
2015-09-04 22:32:44
阅读次数:
278
Calculus on Computational Graphs: BackpropagationIntroductionBackpropagation is the key algorithm that makes training deep models computationally trac...
分类:
其他好文 时间:
2015-09-04 21:10:03
阅读次数:
189