小编Mat*_*age的帖子

达到支出限制后删除了Windows Azure虚拟机 - 如何将其恢复?

从标题中可以看出,我在Azure上设置了一个虚拟机,并安装了我公司为客户端托管的网站和数据库.支出限制没有解除,在达到之后我的VM被删除了.

从那时起,我已经取消了支出限额,但我不知道如何让VM恢复,或者如果可能的话.我需要采取哪些步骤才能回到原来的位置?这台服务器上的数据库是不是很好?我花了几个小时让这台服务器更新更新和Web平台安装程序软件.如果现在一切都失去了,这将是相当残酷的.

azure azure-virtual-machine

7
推荐指数
1
解决办法
3120
查看次数

ASP.Net MVC 3 EF"在表上引入FOREIGN KEY约束可能会导致循环或多个级联路径"

我正在创建一个ASP.Net MVC 3应用程序,并在尝试使用迁移更新我的数据库时遇到外键约束问题.我正在使用Code-First,我得到的错误是:

在表'CategoryItemValues'上引入FOREIGN KEY约束'FK_CategoryItemValues_CategoryProperties_CategoryPropertyId'可能会导致循环或多个级联路径.指定ON DELETE NO ACTION或ON UPDATE NO ACTION,或修改其他FOREIGN KEY约束.无法创建约束.查看以前的错误.

这是我的课程:

public class Category
{
    public int Id { get; set; }
    [Display(Name = "Category Name")]
    public string CategoryName { get; set; }
    [Display(Name = "Display Name")]
    public string DisplayName { get; set; }
    [Display(Name = "Display Order")]
    public int DisplayOrder { get; set; }
    public bool IsTab { get; set; }
    public bool Active { get; set; }

    public virtual List<CategoryProperty> Properties { get; set; }
} …
Run Code Online (Sandbox Code Playgroud)

.net ef-code-first c#-4.0 entity-framework-4.1 asp.net-mvc-3

3
推荐指数
1
解决办法
3995
查看次数

当我只需要XML的子元素时,如何反序列化对象的XML响应?

我从WebRequest获取以下XML:

<?xml version="1.0" encoding="UTF-8"?>
<search>
  <total_items>5</total_items>
  <page_size>10</page_size>
  <page_count>1</page_count>
  <page_number>1</page_number>
  <page_items></page_items>
  <first_item></first_item>
  <last_item></last_item>
  <search_time>0.044</search_time>
  <events>
    <event id="E0-001-053379749-0">
      <title>Antibalas</title>
      <url>http://test.com</url>
      <description>stuff</description>
      <start_time>2013-01-30 20:00:00</start_time>
      <stop_time></stop_time>
      <tz_id></tz_id>
      <tz_olson_path></tz_olson_path>
      <tz_country></tz_country>
      <tz_city></tz_city>
      <venue_id>V0-001-000189211-5</venue_id>
      <venue_url>http://blah.com</venue_url>
      <venue_name>Troubadour</venue_name>
      <venue_display>1</venue_display>
      <venue_address>9081 Santa Monica Boulevard</venue_address>
      <city_name>West Hollywood</city_name>
      <region_name>California</region_name>
      <region_abbr>CA</region_abbr>
      <postal_code>90069</postal_code>
      <country_name>United States</country_name>
      <country_abbr2>US</country_abbr2>
      <country_abbr>USA</country_abbr>
      <latitude>34.0815917</latitude>
      <longitude>-118.3892462</longitude>
      <geocode_type>EVDB Geocoder</geocode_type>
      <all_day>0</all_day>
      <recur_string></recur_string>
      <calendar_count></calendar_count>
      <comment_count></comment_count>
      <link_count></link_count>
      <going_count></going_count>
      <watching_count></watching_count>
      <created>2012-12-24 11:40:43</created>
      <owner>evdb</owner>
      <modified>2013-01-14 21:08:04</modified>
      <performers>
        <performer>
          <id>P0-001-000000517-4</id>
          <url>http://test.com</url>
          <name>Antibalas</name>
          <short_bio>Afro-beat / Funk / Experimental</short_bio>
          <creator>jfisher</creator>
          <linker>evdb</linker>
        </performer>
      </performers>
      <image>
        <url>http://s4.evcdn.com/images/small/I0-001/000/070/311-5.jpeg_/antibalas-11.jpeg</url>
        <width>48</width>
        <height>48</height>
        <caption></caption>
        <thumb>
          <url>http://s4.evcdn.com/images/thumb/I0-001/000/070/311-5.jpeg_/antibalas-11.jpeg</url> …
Run Code Online (Sandbox Code Playgroud)

c# xml serialization webrequest

2
推荐指数
1
解决办法
9085
查看次数